From 8f0fd0ffb75862c6438c7a2def8b0a606f476519 Mon Sep 17 00:00:00 2001 From: Wojciech Kozlowski Date: Sun, 21 Jan 2024 15:14:32 +0100 Subject: [PATCH] Clippy --- tests/library/beets.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/library/beets.rs b/tests/library/beets.rs index 29c2e92..aa562a1 100644 --- a/tests/library/beets.rs +++ b/tests/library/beets.rs @@ -76,9 +76,9 @@ fn test_album_artist_query() { .unwrap(); let expected: Vec = LIBRARY_ITEMS - .to_owned() - .into_iter() + .iter() .filter(|it| it.album_artist == "Аркона") + .cloned() .collect(); assert_eq!(output, expected); } @@ -93,9 +93,9 @@ fn test_album_title_query() { .unwrap(); let expected: Vec = LIBRARY_ITEMS - .to_owned() - .into_iter() + .iter() .filter(|it| it.album_title == "Slovo") + .cloned() .collect(); assert_eq!(output, expected); } @@ -109,9 +109,9 @@ fn test_exclude_query() { .list(Query::new().exclude(Field::AlbumArtist(String::from("Аркона")))) .unwrap(); let expected: Vec = LIBRARY_ITEMS - .to_owned() - .into_iter() + .iter() .filter(|it| it.album_artist != "Аркона") + .cloned() .collect(); let output: HashSet<_> = output.iter().collect();