From 0dd4ae0a7ac0c247078df492469ff20b8a90c886 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Sat, 21 Aug 2021 16:38:51 +0200 Subject: Prune derives --- src/loading/fs.rs | 2 +- src/loading/mem.rs | 2 +- src/loading/mod.rs | 5 +---- 3 files changed, 3 insertions(+), 6 deletions(-) (limited to 'src/loading') diff --git a/src/loading/fs.rs b/src/loading/fs.rs index 46e3dba1..d03df3ba 100644 --- a/src/loading/fs.rs +++ b/src/loading/fs.rs @@ -13,7 +13,7 @@ use crate::font::FaceInfo; /// Loads fonts and files from the local file system. /// /// _This is only available when the `fs` feature is enabled._ -#[derive(Debug, Default, Clone)] +#[derive(Default)] pub struct FsLoader { faces: Vec, } diff --git a/src/loading/mem.rs b/src/loading/mem.rs index d7fb178f..9ff02d2d 100644 --- a/src/loading/mem.rs +++ b/src/loading/mem.rs @@ -9,7 +9,7 @@ use crate::font::FaceInfo; use crate::util::PathExt; /// Loads fonts and files from an in-memory storage. -#[derive(Debug, Default, Clone)] +#[derive(Default)] pub struct MemLoader { faces: Vec, files: HashMap>, diff --git a/src/loading/mod.rs b/src/loading/mod.rs index e6cca012..4841e752 100644 --- a/src/loading/mod.rs +++ b/src/loading/mod.rs @@ -11,15 +11,12 @@ pub use mem::*; use std::io; use std::path::Path; -use serde::{Deserialize, Serialize}; - use crate::font::FaceInfo; /// A hash that identifies a file. /// /// Such a hash can be [resolved](Loader::resolve) from a path. -#[derive(Debug, Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Hash)] -#[derive(Serialize, Deserialize)] +#[derive(Debug, Copy, Clone, Eq, PartialEq, Hash)] pub struct FileHash(pub u64); /// Loads resources from a local or remote source. -- cgit v1.2.3