Task #65353 - added.err

back to task #65353
download
Error: CLIPPY_WARNING:
crates/lib/src/bls_config.rs:38:5: warning: implementation of inherent method `to_string(&self) -> String` for type `bls_config::BLSConfig`
#     |
#  38 | /     pub(crate) fn to_string(&self) -> String {
#  39 | |         let mut out = String::new();
#  40 | |
#  41 | |         if let Some(title) = &self.title {
#  ...  |
#  54 | |         out
#  55 | |     }
#     | |_____^
#     |
#     = help: implement trait `Display` for type `bls_config::BLSConfig` instead
#     = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#inherent_to_string
#     = note: `#[warn(clippy::inherent_to_string)]` on by default

Error: CLIPPY_WARNING:
crates/lib/src/bls_config.rs:42:21: warning: variables can be used directly in the `format!` string
#     |
#  42 |             out += &format!("title {}\n", title);
#     |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
#     |
#     = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
#     = note: `#[warn(clippy::uninlined_format_args)]` on by default
#  help: change this to
#     |
#  42 -             out += &format!("title {}\n", title);
#  42 +             out += &format!("title {title}\n");
#     |

Error: CLIPPY_WARNING:
crates/lib/src/bls_config.rs:51:21: warning: variables can be used directly in the `format!` string
#     |
#  51 |             out += &format!("{} {}\n", key, value);
#     |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
#     |
#     = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
#  help: change this to
#     |
#  51 -             out += &format!("{} {}\n", key, value);
#  51 +             out += &format!("{key} {value}\n");
#     |

Error: CLIPPY_WARNING:
crates/lib/src/cli.rs:956:5: warning: unneeded `return` statement
#      |
#  956 |     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`
#      |
#  956 -     return Ok(target);
#  956 +     Ok(target)
#      |

Error: CLIPPY_WARNING:
crates/lib/src/deploy.rs:879:30: warning: useless use of `format!`
#      |
#  879 |             .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

Error: CLIPPY_WARNING:
crates/lib/src/install.rs:624:16: warning: inequality checks against false are unnecessary
#      |
#  624 |             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:1621:39: warning: useless conversion to the same type: `std::string::String`
#       |
#  1621 |             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

Error: CLIPPY_WARNING:
crates/lib/src/install.rs:1637:13: warning: useless use of `vec!`
#       |
#  1637 | /             vec![
#  1638 | |                 format!("root=UUID={DPS_UUID}"),
#  1639 | |                 RW_KARG.to_string(),
#  1640 | |                 format!("composefs={id_hex}"),
#  1641 | |             ]
#       | |_____________^
#       |
#       = 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
#       |
#  1637 ~             [format!("root=UUID={DPS_UUID}"),
#  1638 +                 RW_KARG.to_string(),
#  1639 +                 format!("composefs={id_hex}")]
#       |

Error: CLIPPY_WARNING:
crates/lib/src/install.rs:1709:51: warning: variables can be used directly in the `format!` string
#       |
#  1709 |     create_dir_all(&entries_path).with_context(|| format!("Creating {:?}", entries_path))?;
#       |                                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
#  help: change this to
#       |
#  1709 -     create_dir_all(&entries_path).with_context(|| format!("Creating {:?}", entries_path))?;
#  1709 +     create_dir_all(&entries_path).with_context(|| format!("Creating {entries_path:?}"))?;
#       |

Error: CLIPPY_WARNING:
crates/lib/src/install.rs:1759:5: warning: unneeded `return` statement
#       |
#  1759 |     return s;
#       |     ^^^^^^^^
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return
#  help: remove `return`
#       |
#  1759 -     return s;
#  1759 +     s
#       |

Error: CLIPPY_WARNING:
crates/lib/src/install.rs:1788:20: warning: length comparison to zero
#       |
#  1788 |                 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:2095:42: warning: useless use of `format!`
#       |
#  2095 |     let actual_var_path = root_path.join(format!("state/os/fedora/var"));
#       |                                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `.to_string()`: `"state/os/fedora/var".to_string()`
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_format

Error: CLIPPY_WARNING:
crates/lib/src/install.rs:2199:42: warning: variables can be used directly in the `format!` string
#       |
#  2199 |                 sysroot_dir.atomic_write(format!("etc/{}", DESTRUCTIVE_CLEANUP), b"")?;
#       |                                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
#       |
#       = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
#  help: change this to
#       |
#  2199 -                 sysroot_dir.atomic_write(format!("etc/{}", DESTRUCTIVE_CLEANUP), b"")?;
#  2199 +                 sysroot_dir.atomic_write(format!("etc/{DESTRUCTIVE_CLEANUP}"), b"")?;
#       |

Error: CLIPPY_WARNING:
crates/lib/src/status.rs:330:19: warning: slow zero-filling initialization
#      |
#  330 |       let mut buf = Vec::with_capacity(manifest.config().size() as usize);
#      |  ___________________^
#  331 | |     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