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

This commit is contained in:
Roy Ivy III
2023-06-12 22:39:06 -05:00
parent 1bb57a4c70
commit 7df4ffd1ab
+1
View File
@@ -48,6 +48,7 @@ fn platform_no_invisible_contents() -> Result<(), String> {
#[test]
fn platform_clone() -> Result<(), String> {
let info = PlatformInfo::new().unwrap();
#[allow(clippy::redundant_clone)] // ignore `clippy::redundant_clone` warning for direct testing
let info_copy = info.clone();
println!("{:?}", info);
assert_eq!(info_copy, info);