From e9eeef94b856a3a2b7ecdccaba6390413a1f18f6 Mon Sep 17 00:00:00 2001 From: Wojciech Kozlowski Date: Sun, 14 Jan 2024 11:19:15 +0100 Subject: [PATCH] Clippy --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index fdd2e4a..fa76c2f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -2028,7 +2028,7 @@ mod tests { // The result of the merge should be the same list of artists, but with the last artist now // in first place. let mut expected = left.to_owned(); - expected.last_mut().map(|a| a.sort = artist_sort.clone()); + expected.last_mut().as_mut().unwrap().sort = artist_sort.clone(); expected.rotate_right(1); let mut merged = left.clone();