Skip to content

Commit

Permalink
Fix clippy errors
Browse files Browse the repository at this point in the history
  • Loading branch information
AnirbanHalder654322 committed Apr 21, 2024
1 parent b77d7b3 commit c0c0342
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/by-util/test_cp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3958,7 +3958,7 @@ fn test_cp_debug_default_without_hole() {
at.touch("a");
at.append_bytes("a", "hello".as_bytes());

let filler_bytes = [0 as u8; 10000];
let filler_bytes = [0_u8; 10000];

at.append_bytes("a", &filler_bytes);

Expand Down Expand Up @@ -4034,7 +4034,7 @@ fn test_cp_debug_reflink_never_sparse_always_with_hole() {
#[cfg(any(target_os = "linux", target_os = "android"))]
fn test_cp_debug_reflink_never_sparse_always_without_hole() {
let ts = TestScenario::new(util_name!());
let empty_bytes = [0 as u8; 10000];
let empty_bytes = [0_u8; 10000];
let at = &ts.fixtures;
at.touch("a");
at.write("a", "hello");
Expand Down Expand Up @@ -4321,7 +4321,7 @@ fn test_cp_debug_sparse_never_without_hole() {
at.touch("a");
at.append_bytes("a", "hello".as_bytes());

let filler_bytes = [0 as u8; 10000];
let filler_bytes = [0_u8; 10000];

at.append_bytes("a", &filler_bytes);

Expand Down Expand Up @@ -4449,7 +4449,7 @@ fn test_cp_debug_default_zero_sized_virtual_file() {
#[cfg(any(target_os = "linux", target_os = "android"))]
fn test_cp_debug_reflink_never_without_hole() {
let ts = TestScenario::new(util_name!());
let filler_bytes = [0 as u8; 1000];
let filler_bytes = [0_u8; 1000];
let at = &ts.fixtures;
at.touch("a");
at.write("a", "hello");
Expand Down

0 comments on commit c0c0342

Please sign in to comment.