tests ~ (windows) fix complaint (*allow* clippy::redundant_clone)

This commit is contained in:
Roy Ivy III
2023-06-12 22:38:25 -05:00
parent 6c6cab4927
commit 89ef1924ec
+3
View File
@@ -750,6 +750,7 @@ fn test_known_winos_names() {
fn structure_clone() {
let info = PlatformInfo::new().unwrap();
println!("{:?}", info);
#[allow(clippy::redundant_clone)] // ignore `clippy::redundant_clone` warning for direct testing
let info_copy = info.clone();
assert_eq!(info_copy, info);
@@ -760,6 +761,7 @@ fn structure_clone() {
release: 4,
};
println!("{:?}", mmbr);
#[allow(clippy::redundant_clone)] // ignore `clippy::redundant_clone` warning for direct testing
let mmbr_copy = mmbr.clone();
assert_eq!(mmbr_copy, mmbr);
@@ -767,6 +769,7 @@ fn structure_clone() {
data: vec![1, 2, 3, 4],
};
println!("{:?}", fvi);
#[allow(clippy::redundant_clone)] // ignore `clippy::redundant_clone` warning for direct testing
let fvi_copy = fvi.clone();
assert_eq!(fvi_copy, fvi);
}