Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
ljufa committed Sep 21, 2024
1 parent f013faf commit eb56179
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions rsplayer_playback/src/rsp/player_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ impl PlayerService {
if i % 5 == 0 {
let lt = st.current_time.as_secs().to_string();
debug!("Save state: {lt}");
_ = db2.insert("last_played_song_progress", lt.as_bytes())
_ = db2.insert("last_played_song_progress", lt.as_bytes());
}
}
}
Expand Down Expand Up @@ -251,8 +251,7 @@ impl PlayerService {
let v = lt.to_vec();
String::from_utf8(v).unwrap()
}
Ok(None) => "0".to_string(),
Err(_) => "0".to_string(),
_ => "0".to_string(),
};
last_time.parse::<u16>().unwrap_or_default()
}
Expand Down

0 comments on commit eb56179

Please sign in to comment.