Task #68517 - added.err
back to task #68517download
Error: CLIPPY_WARNING:
crates/lib/src/cli.rs:1103:5: warning: unneeded `return` statement
# |
# 1103 | return Ok(target);
# | ^^^^^^^^^^^^^^^^^
# |
# = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return
# = note: `#[warn(clippy::needless_return)]` on by default
# help: remove `return`
# |
# 1103 - return Ok(target);
# 1103 + Ok(target)
# |
Error: CLIPPY_WARNING:
crates/lib/src/deploy.rs:934:30: warning: useless use of `format!`
# |
# 934 | .with_context(|| format!("Reopening /sysroot/boot/loader as owned fd"))?,
# | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `.to_string()`: `"Reopening /sysroot/boot/loader as owned fd".to_string()`
# |
# = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format
# = note: `#[warn(clippy::useless_format)]` on by default
Error: CLIPPY_WARNING:
crates/lib/src/install.rs:620:16: warning: inequality checks against false are unnecessary
# |
# 620 | if self.composefs_opts.insecure != false {
# | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try simplifying it as shown: `self.composefs_opts.insecure`
# |
# = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_comparison
# = note: `#[warn(clippy::bool_comparison)]` on by default
Error: CLIPPY_WARNING:
crates/lib/src/install.rs:1726:39: warning: useless conversion to the same type: `std::string::String`
# |
# 1726 | let mut cmdline_options = String::from(root_setup.kargs.join(" "));
# | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider removing `String::from()`: `root_setup.kargs.join(" ")`
# |
# = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
# = note: `#[warn(clippy::useless_conversion)]` on by default
Error: CLIPPY_WARNING:
crates/lib/src/install.rs:1760:17: warning: useless use of `vec!`
# |
# 1760 | / vec![
# 1761 | | format!("root=UUID={DPS_UUID}"),
# 1762 | | RW_KARG.to_string(),
# 1763 | | format!("{COMPOSEFS_CMDLINE}={id_hex}"),
# 1764 | | ]
# | |_________________^
# |
# = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_vec
# = note: `#[warn(clippy::useless_vec)]` on by default
# help: you can use an array directly
# |
# 1760 ~ [format!("root=UUID={DPS_UUID}"),
# 1761 + RW_KARG.to_string(),
# 1762 + format!("{COMPOSEFS_CMDLINE}={id_hex}")]
# |
Error: CLIPPY_WARNING:
crates/lib/src/install.rs:1944:20: warning: length comparison to zero
# |
# 1944 | if v.len() > 0 {
# | ^^^^^^^^^^^ help: using `!is_empty` is clearer and more explicit: `!v.is_empty()`
# |
# = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#len_zero
# = note: `#[warn(clippy::len_zero)]` on by default
Error: CLIPPY_WARNING:
crates/lib/src/install.rs:2139:6: warning: very complex type used. Consider factoring parts into `type` definitions
# |
# 2139 | ) -> Result<(
# | ______^
# 2140 | | ComposefsRepository<Sha256HashValue>,
# 2141 | | Vec<ComposefsBootEntry<Sha256HashValue>>,
# 2142 | | Sha256HashValue,
# 2143 | | FileSystem<Sha256HashValue>,
# 2144 | | )> {
# | |__^
# |
# = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#type_complexity
# = note: `#[warn(clippy::type_complexity)]` on by default
Error: CLIPPY_WARNING:
crates/lib/src/parsers/grub_menuconfig.rs:116:22: warning: redundant guard
# |
# 116 | c if c == '\\' => {
# | ^^^^^^^^^
# |
# = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_guards
# = note: `#[warn(clippy::redundant_guards)]` on by default
# help: try
# |
# 116 - c if c == '\\' => {
# 116 + '\\' => {
# |
Error: CLIPPY_WARNING:
crates/lib/src/status.rs:412:19: warning: slow zero-filling initialization
# |
# 412 | let mut buf = Vec::with_capacity(manifest.config().size() as usize);
# | ___________________^
# 413 | | buf.resize(manifest.config().size() as usize, 0);
# | |____________________________________________________^ help: consider replacing this with: `vec![0; manifest.config().size() as usize]`
# |
# = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#slow_vector_initialization
# = note: `#[warn(clippy::slow_vector_initialization)]` on by default
Error: CLIPPY_WARNING:
crates/lib/src/utils.rs:203:14: warning: this `repeat().take()` can be written more concisely
# |
# 203 | let up = std::iter::repeat(Component::ParentDir).take(from.len() - common);
# | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `repeat_n()` instead: `std::iter::repeat_n(Component::ParentDir, from.len() - common)`
# |
# = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_repeat_n
# = note: `#[warn(clippy::manual_repeat_n)]` on by default
Error: CLIPPY_WARNING:
crates/lib/src/utils.rs:209:5: warning: unneeded `return` statement
# |
# 209 | return Ok(final_path);
# | ^^^^^^^^^^^^^^^^^^^^^
# |
# = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return
# help: remove `return`
# |
# 209 - return Ok(final_path);
# 209 + Ok(final_path)
# |