tsk-55: Code formatting
This commit is contained in:
@@ -30,8 +30,7 @@ pub async fn get_token(
|
||||
// TODO: Might want to put the functionality within icarus_models at some point
|
||||
pub async fn did_token_expire(login_result: &icarus_models::login_result::LoginResult) -> bool {
|
||||
let current_time = time::OffsetDateTime::now_utc();
|
||||
let expire_time =
|
||||
time::OffsetDateTime::from_unix_timestamp(login_result.expiration).unwrap();
|
||||
let expire_time = time::OffsetDateTime::from_unix_timestamp(login_result.expiration).unwrap();
|
||||
current_time > expire_time
|
||||
}
|
||||
|
||||
|
@@ -213,7 +213,8 @@ async fn some_work(
|
||||
|
||||
println!("CoverArt path: {coverart_queue_path:?}");
|
||||
|
||||
match metadata::apply_metadata(&song_queue_path, &coverart_queue_path, &metadata).await {
|
||||
match metadata::apply_metadata(&song_queue_path, &coverart_queue_path, &metadata).await
|
||||
{
|
||||
Ok(_applied) => {
|
||||
match api::update_queued_song::update_queued_song(
|
||||
app,
|
||||
|
Reference in New Issue
Block a user