Skip to content

tests: ui: compile-fail: init: wrong_generics2: fix nightly output #151

tests: ui: compile-fail: init: wrong_generics2: fix nightly output

tests: ui: compile-fail: init: wrong_generics2: fix nightly output #151

Triggered via push July 19, 2024 08:41
Status Success
Total duration 1m 48s
Artifacts

safety.yml

on: push
Fit to window
Zoom out
Zoom in

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) }; |