Task #62344 - added.err
back to task #62344download
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:333:29: warning: variables can be used directly in the `format!` string
# |
# 333 | ... format!("bootc: cleaned up leaked loopback device {}\n", device_path).as_bytes()
# | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
# |
# = 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
# |
# 333 - format!("bootc: cleaned up leaked loopback device {}\n", device_path).as_bytes()
# 333 + format!("bootc: cleaned up leaked loopback device {device_path}\n").as_bytes()
# |
Error: CLIPPY_WARNING:
blockdev/src/blockdev.rs:340:29: warning: variables can be used directly in the `format!` string
# |
# 340 | ... format!("bootc: failed to clean up loopback device {}\n", device_path).as_bytes()
# | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
# |
# = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
# help: change this to
# |
# 340 - format!("bootc: failed to clean up loopback device {}\n", device_path).as_bytes()
# 340 + format!("bootc: failed to clean up loopback device {device_path}\n").as_bytes()
# |
Error: CLIPPY_WARNING:
blockdev/src/blockdev.rs:347:29: warning: variables can be used directly in the `format!` string
# |
# 347 | ... format!("bootc: error cleaning up loopback device {}: {}\n", device_path, e).as_bytes()
# | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
# |
# = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
# help: change this to
# |
# 347 - format!("bootc: error cleaning up loopback device {}: {}\n", device_path, e).as_bytes()
# 347 + format!("bootc: error cleaning up loopback device {device_path}: {e}\n").as_bytes()
# |