mirror of
https://github.com/uutils/platform-info.git
synced 2026-06-10 15:48:45 -07:00
tests ~ fix cargo clippy complaint (*allow* clippy::redundant_clone)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user