diff --git a/crates/servicepoint/src/command.rs b/crates/servicepoint/src/command.rs index 92ea8a9..397ada6 100644 --- a/crates/servicepoint/src/command.rs +++ b/crates/servicepoint/src/command.rs @@ -605,7 +605,7 @@ mod tests { #[test] fn round_trip_bitmap_linear() { - for compression in all_compressions().to_owned() { + for compression in all_compressions().iter().copied() { round_trip(Command::BitmapLinear( 23, BitVec::repeat(false, 40), @@ -750,7 +750,7 @@ mod tests { #[test] fn error_decompression_failed_win() { - for compression in all_compressions().to_owned() { + for compression in all_compressions().iter().copied() { let p: Packet = Command::BitmapLinearWin( Origin::new(16, 8), Bitmap::new(8, 8), @@ -780,7 +780,7 @@ mod tests { #[test] fn error_decompression_failed_and() { - for compression in all_compressions().to_owned() { + for compression in all_compressions().iter().copied() { let p: Packet = Command::BitmapLinearAnd( 0, BitVec::repeat(false, 8), diff --git a/crates/servicepoint/src/cp437.rs b/crates/servicepoint/src/cp437.rs index 32a7396..cb9b945 100644 --- a/crates/servicepoint/src/cp437.rs +++ b/crates/servicepoint/src/cp437.rs @@ -101,7 +101,7 @@ mod tests_feature_cp437 { ⌡"#; let cp437 = Cp437Converter::str_to_cp437(utf8); - let actual = Cp437Converter::cp437_to_str(&*cp437); + let actual = Cp437Converter::cp437_to_str(&cp437); assert_eq!(utf8, actual) }