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
|
|
@ -5,6 +5,7 @@ pub mod sqlite;
|
|||
use std::{path::PathBuf, sync::Arc};
|
||||
|
||||
use chrono::{DateTime, Utc};
|
||||
use rustc_hash::FxHashMap;
|
||||
use uuid::Uuid;
|
||||
|
||||
use crate::{
|
||||
|
|
@ -221,7 +222,7 @@ pub trait StorageBackend: Send + Sync + 'static {
|
|||
async fn get_custom_fields(
|
||||
&self,
|
||||
media_id: MediaId,
|
||||
) -> Result<std::collections::HashMap<String, CustomField>>;
|
||||
) -> Result<FxHashMap<String, CustomField>>;
|
||||
|
||||
/// Delete a custom field from a media item by name.
|
||||
async fn delete_custom_field(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue