Clippy
All checks were successful
Cargo CI / Build and Test (pull_request) Successful in 1m3s
Cargo CI / Lint (pull_request) Successful in 45s

This commit is contained in:
Wojciech Kozlowski 2024-01-14 11:19:15 +01:00
parent 526f77ea50
commit e9eeef94b8

View File

@ -2028,7 +2028,7 @@ mod tests {
// The result of the merge should be the same list of artists, but with the last artist now // The result of the merge should be the same list of artists, but with the last artist now
// in first place. // in first place.
let mut expected = left.to_owned(); 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); expected.rotate_right(1);
let mut merged = left.clone(); let mut merged = left.clone();