Skip to content

Quality of life improvements #213

Quality of life improvements

Quality of life improvements #213

Triggered via pull request July 29, 2023 04:26
Status Success
Total duration 1m 37s
Artifacts

scheduled.yml

on: pull_request
ubuntu / nightly
1m 12s
ubuntu / nightly
ubuntu / nightly / updated
1m 27s
ubuntu / nightly / updated
Fit to window
Zoom out
Zoom in

Annotations

6 warnings
passing a unit value to a function: src/lib.rs#L1228
warning: passing a unit value to a function --> src/lib.rs:1228:38 | 1228 | init_from_closure(|slot| Ok(init.__init(slot).unwrap())) //cannot fail | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unit_arg help: move the expression in front of the call and replace it with the unit literal `()` | 1228 ~ init_from_closure(|slot| { 1229 + init.__init(slot).unwrap(); 1230 + Ok(()) 1231 ~ }) //cannot fail |
passing a unit value to a function: src/lib.rs#L1214
warning: passing a unit value to a function --> src/lib.rs:1214:17 | 1214 | Ok(init.__pinned_init(slot).unwrap()) // cannot fail | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unit_arg = note: `#[warn(clippy::unit_arg)]` on by default help: move the expression in front of the call and replace it with the unit literal `()` | 1214 ~ init.__pinned_init(slot).unwrap(); 1215 ~ Ok(()) // cannot fail |
unneeded sub `cfg` when there is only one condition: src/lib.rs#L1265
warning: unneeded sub `cfg` when there is only one condition --> src/lib.rs:1265:7 | 1265 | #[cfg(any(feature = "alloc"))] | ^^^^^^^^^^^^^^^^^^^^^^ help: try: `feature = "alloc"` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#non_minimal_cfg
unneeded sub `cfg` when there is only one condition: src/lib.rs#L1234
warning: unneeded sub `cfg` when there is only one condition --> src/lib.rs:1234:7 | 1234 | #[cfg(any(feature = "alloc"))] | ^^^^^^^^^^^^^^^^^^^^^^ help: try: `feature = "alloc"` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#non_minimal_cfg
unneeded sub `cfg` when there is only one condition: src/lib.rs#L258
warning: unneeded sub `cfg` when there is only one condition --> src/lib.rs:258:7 | 258 | #[cfg(any(feature = "alloc"))] | ^^^^^^^^^^^^^^^^^^^^^^ help: try: `feature = "alloc"` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#non_minimal_cfg
unneeded sub `cfg` when there is only one condition: src/lib.rs#L255
warning: unneeded sub `cfg` when there is only one condition --> src/lib.rs:255:7 | 255 | #[cfg(any(feature = "alloc"))] | ^^^^^^^^^^^^^^^^^^^^^^ help: try: `feature = "alloc"` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#non_minimal_cfg = note: `#[warn(clippy::non_minimal_cfg)]` on by default