Latest nightly #1159
Annotations
1 error and 14 warnings
cargo clippy
Process completed with exit code 1.
|
cargo clippy:
cordyceps/src/list/cursor.rs#L342
warning: replacing a value of type `T` with `T::default()` is better expressed using `core::mem::take`
--> cordyceps/src/list/cursor.rs:342:28
|
342 | None => return mem::replace(self.core.list, List::new()),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `core::mem::take(self.core.list)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#mem_replace_with_default
= note: `#[warn(clippy::mem_replace_with_default)]` on by default
|
cargo clippy:
cordyceps/src/list.rs#L368
warning: replacing a value of type `T` with `T::default()` is better expressed using `core::mem::take`
--> cordyceps/src/list.rs:368:30
|
368 | 0 => return Some(mem::replace(self, Self::new())),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `core::mem::take(self)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#mem_replace_with_default
|
cargo clippy:
cordyceps/src/list.rs#L991
warning: replacing a value of type `T` with `T::default()` is better expressed using `core::mem::take`
--> cordyceps/src/list.rs:991:28
|
991 | None => return mem::replace(self, Self::new()),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using: `core::mem::take(self)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#mem_replace_with_default
|
cargo clippy:
bitfield/src/bitfield.rs#L68
warning: doc list item overindented
--> bitfield/src/bitfield.rs:68:4
|
68 | /// "struct", with a "field" for each packing spec in the bitfield. If any
| ^^^^^^^ help: try using ` ` (3 spaces)
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_overindented_list_items
= note: `#[warn(clippy::doc_overindented_list_items)]` on by default
|
cargo clippy:
bitfield/src/bitfield.rs#L69
warning: doc list item overindented
--> bitfield/src/bitfield.rs:69:4
|
69 | /// of the bitfield's packing specs pack typed values, that type's
| ^^^^^^^ help: try using ` ` (3 spaces)
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_overindented_list_items
|
cargo clippy:
bitfield/src/bitfield.rs#L70
warning: doc list item overindented
--> bitfield/src/bitfield.rs:70:4
|
70 | /// [`fmt::Debug`] implementation is used rather than printing the value
| ^^^^^^^ help: try using ` ` (3 spaces)
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_overindented_list_items
|
cargo clippy:
bitfield/src/bitfield.rs#L71
warning: doc list item overindented
--> bitfield/src/bitfield.rs:71:4
|
71 | /// as an integer.
| ^^^^^^^ help: try using ` ` (3 spaces)
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_overindented_list_items
|
cargo clippy:
bitfield/src/bitfield.rs#L74
warning: doc list item overindented
--> bitfield/src/bitfield.rs:74:4
|
74 | /// bitfield in hexadecimal.
| ^^^^^^^ help: try using ` ` (3 spaces)
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_overindented_list_items
|
cargo clippy:
bitfield/src/bitfield.rs#L76
warning: doc list item overindented
--> bitfield/src/bitfield.rs:76:4
|
76 | /// multi-line format which I'm rather proud of. See
| ^^^^^^^ help: try using ` ` (3 spaces)
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_overindented_list_items
|
cargo clippy:
bitfield/src/bitfield.rs#L77
warning: doc list item overindented
--> bitfield/src/bitfield.rs:77:4
|
77 | /// [here](#example-display-output) for examples of this format.
| ^^^^^^^ help: try using ` ` (3 spaces)
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_overindented_list_items
|
install rust toolchain
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
install rust toolchain
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
install rust toolchain
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
install rust toolchain
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Loading