Skip to content

Commit c8d060c

Browse files
committed
silency clippy warnings
1 parent fd08a63 commit c8d060c

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

tests/test_models.rs

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,10 @@ fn test_full_playlist() {
547547
);
548548
assert_eq!(full_playlist.followers.total, 109);
549549
assert_eq!(full_playlist.items.total, 5);
550-
assert_eq!(full_playlist.tracks.total, 5);
550+
#[allow(deprecated)]
551+
{
552+
assert_eq!(full_playlist.tracks.total, 5);
553+
}
551554
}
552555

553556
#[test]
@@ -968,8 +971,11 @@ fn test_full_playlist_accepts_items_field() {
968971
full_playlist.items.href,
969972
"https://api.spotify.com/v1/playlists/3cEYpjA9oz9GiPac4AsH4n/items?offset=0&limit=100&locale=en-US,en;q%3D0.9"
970973
);
971-
assert_eq!(full_playlist.tracks.total, 5);
972-
assert_eq!(full_playlist.tracks.href, full_playlist.items.href);
974+
#[allow(deprecated)]
975+
{
976+
assert_eq!(full_playlist.tracks.total, 5);
977+
assert_eq!(full_playlist.tracks.href, full_playlist.items.href);
978+
}
973979
}
974980

975981
#[test]

0 commit comments

Comments
 (0)