Skip to content

Commit

Permalink
Fix cargo clippy error.
Browse files Browse the repository at this point in the history
  • Loading branch information
ramsayleung committed Mar 8, 2024
1 parent 75ceb28 commit cd55e43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/ureq/seek_track.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ fn main() {
// This function requires the `cli` feature enabled.
spotify.prompt_for_token(&url).unwrap();

match spotify.seek_track(chrono::Duration::seconds(25), None) {
match spotify.seek_track(chrono::Duration::try_seconds(25).unwrap(), None) {
Ok(_) => println!("Change to previous playback successful"),
Err(_) => eprintln!("Change to previous playback failed"),
}
Expand Down

0 comments on commit cd55e43

Please sign in to comment.