Skip to content

Quality of life improvements #23

Quality of life improvements

Quality of life improvements #23

Triggered via pull request June 24, 2023 21:37
Status Success
Total duration 2m 0s
Artifacts
This run and associated checks have been archived and are scheduled for deletion. Learn more about checks retention

coverage.yml

on: pull_request
ubuntu / nightly / coverage
1m 51s
ubuntu / nightly / coverage
Fit to window
Zoom out
Zoom in

Annotations

6 warnings
passing a unit value to a function: src/lib.rs#L1101
warning: passing a unit value to a function --> src/lib.rs:1101:38 | 1101 | 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 `()` | 1101 ~ init_from_closure(|slot| { 1102 + init.__init(slot).unwrap(); 1103 + Ok(()) 1104 ~ }) //cannot fail |
passing a unit value to a function: src/lib.rs#L1087
warning: passing a unit value to a function --> src/lib.rs:1087:17 | 1087 | 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 `()` | 1087 ~ init.__pinned_init(slot).unwrap(); 1088 ~ Ok(()) // cannot fail |
unneeded sub `cfg` when there is only one condition: src/lib.rs#L1138
warning: unneeded sub `cfg` when there is only one condition --> src/lib.rs:1138:7 | 1138 | #[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#L1107
warning: unneeded sub `cfg` when there is only one condition --> src/lib.rs:1107:7 | 1107 | #[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