Skip to content

tests: ui: compile-fail: fix nightly output #539

tests: ui: compile-fail: fix nightly output

tests: ui: compile-fail: fix nightly output #539

GitHub Actions / clippy succeeded Jul 25, 2024 in 0s

clippy

2 warnings

Details

Results

Message level Amount
Internal compiler error 0
Error 0
Warning 2
Note 0
Help 0

Versions

  • rustc 1.82.0-nightly (c1a6199e9 2024-07-24)
  • cargo 1.82.0-nightly (5f6b9a922 2024-07-19)
  • clippy 0.1.81 (c1a6199 2024-07-24)

Annotations

Check warning on line 927 in src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

using `map_err` over `inspect_err`

warning: using `map_err` over `inspect_err`
   --> src/lib.rs:927:41
    |
927 |         (self.1)(unsafe { &mut *slot }).map_err(|e| {
    |                                         ^^^^^^^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_inspect
help: try
    |
927 ~         (self.1)(unsafe { &mut *slot }).inspect_err(|e| {
928 |             // SAFETY: `slot` was initialized above.
929 ~             unsafe { core::ptr::drop_in_place(slot) };
    |

Check warning on line 829 in src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

using `map_err` over `inspect_err`

warning: using `map_err` over `inspect_err`
   --> src/lib.rs:829:23
    |
829 |         (self.1)(val).map_err(|e| {
    |                       ^^^^^^^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_inspect
    = note: `#[warn(clippy::manual_inspect)]` on by default
help: try
    |
829 ~         (self.1)(val).inspect_err(|e| {
830 |             // SAFETY: `slot` was initialized above.
831 ~             unsafe { core::ptr::drop_in_place(slot) };
    |