tests: ui: compile-fail: init: wrong_generics2: fix nightly output #151
Annotations
2 warnings
using `map_err` over `inspect_err`:
src/lib.rs#L927
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) };
|
|
using `map_err` over `inspect_err`:
src/lib.rs#L829
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) };
|
|