mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
clippy: fix warnings introduced with Rust 1.67.0
This commit is contained in:
parent
fc7e51a4f8
commit
f6b646e4e5
172 changed files with 835 additions and 1034 deletions
|
@ -519,7 +519,7 @@ fn test_default_block_size_in_posix_portability_mode() {
|
|||
fn test_block_size_1024() {
|
||||
fn get_header(block_size: u64) -> String {
|
||||
let output = new_ucmd!()
|
||||
.args(&["-B", &format!("{}", block_size), "--output=size"])
|
||||
.args(&["-B", &format!("{block_size}"), "--output=size"])
|
||||
.succeeds()
|
||||
.stdout_move_str();
|
||||
output.lines().next().unwrap().trim().to_string()
|
||||
|
@ -693,9 +693,9 @@ fn test_ignore_block_size_from_env_in_posix_portability_mode() {
|
|||
fn test_too_large_block_size() {
|
||||
fn run_command(size: &str) {
|
||||
new_ucmd!()
|
||||
.arg(format!("--block-size={}", size))
|
||||
.arg(format!("--block-size={size}"))
|
||||
.fails()
|
||||
.stderr_contains(format!("--block-size argument '{}' too large", size));
|
||||
.stderr_contains(format!("--block-size argument '{size}' too large"));
|
||||
}
|
||||
|
||||
let too_large_sizes = vec!["1Y", "1Z"];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue