Task #62350 - added.err

back to task #62350
download
Error: CLIPPY_WARNING:
blockdev/src/blockdev.rs:271:38: warning: manually constructing a nul-terminated string
#      |
#  271 |             let null_fd = libc::open(b"/dev/null\0".as_ptr() as *const i8, libc::O_RDWR);
#      |                                      ^^^^^^^^^^^^^^ help: use a `c""` literal: `c"/dev/null"`
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_c_str_literals
#      = note: `#[warn(clippy::manual_c_str_literals)]` on by default

Error: CLIPPY_WARNING:
blockdev/src/blockdev.rs:341:29: warning: variables can be used directly in the `format!` string
#      |
#  341 | ...                   format!("bootc: cleaned up leaked loopback device {}\n", device_path)
#      |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
#      |
#      = 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
#      |
#  341 -                             format!("bootc: cleaned up leaked loopback device {}\n", device_path)
#  341 +                             format!("bootc: cleaned up leaked loopback device {device_path}\n")
#      |

Error: CLIPPY_WARNING:
blockdev/src/blockdev.rs:349:29: warning: variables can be used directly in the `format!` string
#      |
#  349 | / ...                   format!(
#  350 | | ...                       "bootc: failed to clean up loopback device {}\n",
#  351 | | ...                       device_path
#  352 | | ...                   )
#      | |_______________________^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args

Error: CLIPPY_WARNING:
blockdev/src/blockdev.rs:360:29: warning: variables can be used directly in the `format!` string
#      |
#  360 | / ...                   format!(
#  361 | | ...                       "bootc: error cleaning up loopback device {}: {}\n",
#  362 | | ...                       device_path, e
#  363 | | ...                   )
#      | |_______________________^
#      |
#      = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args