treewide: replace std hashers with rustc_hash alternatives; fix clippy
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: I766c36cb53d3d7f9e85b91a67c4131a66a6a6964
This commit is contained in:
parent
0e79ba0518
commit
c6efd3661f
53 changed files with 343 additions and 394 deletions
|
|
@ -1,5 +1,3 @@
|
|||
use std::collections::HashMap;
|
||||
|
||||
use axum::{
|
||||
Json,
|
||||
Router,
|
||||
|
|
@ -91,8 +89,10 @@ pub async fn get_timeline(
|
|||
.collect();
|
||||
|
||||
// Group by the requested period
|
||||
let mut groups: HashMap<String, Vec<pinakes_core::model::MediaItem>> =
|
||||
HashMap::new();
|
||||
let mut groups: rustc_hash::FxHashMap<
|
||||
String,
|
||||
Vec<pinakes_core::model::MediaItem>,
|
||||
> = rustc_hash::FxHashMap::default();
|
||||
|
||||
for photo in photos {
|
||||
if let Some(date_taken) = photo.date_taken {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue