Skip to content

Commit 5b562bf

Browse files
danielverkampCommit Bot
authored and
Commit Bot
committed
disk: composite: fix into_iter warnings
Convert into_iter() calls into iter() where appropriate: rust-lang/rust#66145 BUG=b:181674168 TEST=cargo test -p disk --features=composite-disk Change-Id: I9c82a7b956598628010a3dbb33db6e425bbc4e2c Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/2743402 Tested-by: kokoro <[email protected]> Commit-Queue: Daniel Verkamp <[email protected]> Reviewed-by: Dennis Kempin <[email protected]> Reviewed-by: Dylan Reid <[email protected]>
1 parent b8c64b6 commit 5b562bf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

disk/src/composite.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ mod tests {
468468
composite
469469
.read_exact_at_volatile(output_volatile_memory.get_slice(0, 200).unwrap(), 50)
470470
.unwrap();
471-
assert!(input_memory.into_iter().eq(output_memory.into_iter()));
471+
assert!(input_memory.iter().eq(output_memory.iter()));
472472
}
473473

474474
#[test]
@@ -508,7 +508,7 @@ mod tests {
508508
for i in 50..250 {
509509
input_memory[i] = 0;
510510
}
511-
assert!(input_memory.into_iter().eq(output_memory.into_iter()));
511+
assert!(input_memory.iter().eq(output_memory.iter()));
512512
}
513513

514514
#[test]
@@ -559,6 +559,6 @@ mod tests {
559559
i, input_memory[i], output_memory[i]
560560
);
561561
}
562-
assert!(input_memory.into_iter().eq(output_memory.into_iter()));
562+
assert!(input_memory.iter().eq(output_memory.iter()));
563563
}
564564
}

0 commit comments

Comments
 (0)