Skip to content

Commit

Permalink
fix: fmt & clippy warning
Browse files Browse the repository at this point in the history
Signed-off-by: Lachezar Lechev <[email protected]>
  • Loading branch information
elpiel committed Aug 21, 2023
1 parent 25cf784 commit c6d91bb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/models/player.rs
Original file line number Diff line number Diff line change
Expand Up @@ -745,7 +745,8 @@ fn library_item_update<E: Env + 'static>(
} => Some(meta_item),
_ => None,
});
let library_item = match (library_item, meta_item) {

match (library_item, meta_item) {
(Some(library_item), Some(meta_item)) => {
Some(LibraryItem::from((&meta_item.preview, library_item)))
}
Expand All @@ -754,8 +755,7 @@ fn library_item_update<E: Env + 'static>(
}
(Some(library_item), None) => Some(library_item.to_owned()),
_ => None,
};
library_item
}
}
_ => None,
};
Expand Down
2 changes: 1 addition & 1 deletion src/unit_tests/ctx/notifications/update_notifications.rs
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ fn test_dismiss_notification() {
let runtime = Arc::new(RwLock::new(runtime));
// update now to later date than both last_watched
let expected_last_watched = Utc.with_ymd_and_hms(2023, 8, 14, 0, 0, 0).unwrap();
*NOW.write().unwrap() = expected_last_watched.clone();
*NOW.write().unwrap() = expected_last_watched;

TestEnv::run_with_runtime(
rx,
Expand Down

0 comments on commit c6d91bb

Please sign in to comment.