Skip to content

Commit

Permalink
make clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
dicej committed Aug 22, 2022
1 parent 291175d commit 11c7911
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion client/src/images.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ fn reset_video(event: Event) {
// We (re)load the video here to force the poster image to be displayed (again)
//
// See https://stackoverflow.com/questions/14245644/html5-video-end-of-a-video-poster for details.
let _ = video.load();
video.load();
}
}
}
Expand Down
1 change: 0 additions & 1 deletion server/src/media.rs
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,6 @@ pub struct FileData {
/// Find and return `FileData` for one of the files where the item with the specified `hash` was found.
///
/// There may be more than one such file in the database; this function will pick one arbitrarily.
#[allow(clippy::eval_order_dependence)]
async fn file_data(conn: &mut SqliteConnection, hash: &str) -> Result<FileData> {
if let (Some(path), Some(image)) = (
sqlx::query!("SELECT path FROM paths WHERE hash = ?1 LIMIT 1", hash)
Expand Down

0 comments on commit 11c7911

Please sign in to comment.