From 175518e3a6c06a9b85526d63317a085a7bd7ee64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Ml=C3=A1dek?= Date: Sat, 30 Mar 2024 16:41:21 +0100 Subject: [PATCH] refactor: allow known clippy issues --- base/src/entry.rs | 1 + base/src/lang.rs | 1 + cli/src/routes.rs | 1 + db/src/stores/fs/mod.rs | 2 ++ 4 files changed, 5 insertions(+) diff --git a/base/src/entry.rs b/base/src/entry.rs index 381c782..1c9c6ed 100644 --- a/base/src/entry.rs +++ b/base/src/entry.rs @@ -61,6 +61,7 @@ pub struct InvariantEntry { pub value: EntryValue, } +#[allow(clippy::large_enum_variant)] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "t", content = "c")] pub enum EntryValue { diff --git a/base/src/lang.rs b/base/src/lang.rs index 3e36e6c..0eaaa47 100644 --- a/base/src/lang.rs +++ b/base/src/lang.rs @@ -79,6 +79,7 @@ impl TryFrom for Attribute { } } +#[allow(clippy::large_enum_variant)] #[derive(Debug, Clone, PartialEq)] pub enum QueryPart { Matches(PatternQuery), diff --git a/cli/src/routes.rs b/cli/src/routes.rs index abeb2bd..1b2be42 100644 --- a/cli/src/routes.rs +++ b/cli/src/routes.rs @@ -385,6 +385,7 @@ pub struct InEntry { pub value: EntryValue, } +#[allow(clippy::large_enum_variant)] #[derive(Debug, Clone, Deserialize)] #[serde(untagged, deny_unknown_fields)] pub enum PutInput { diff --git a/db/src/stores/fs/mod.rs b/db/src/stores/fs/mod.rs index 84dcf90..3f3e613 100644 --- a/db/src/stores/fs/mod.rs +++ b/db/src/stores/fs/mod.rs @@ -136,6 +136,7 @@ impl FsStore { // Actual processing let count = RwLock::new(0_usize); + #[allow(clippy::type_complexity)] let resolve_cache: Arc, UNode), Address>>> = Arc::new(Mutex::new(LruCache::new(256))); let total = paths.len() as f32; @@ -238,6 +239,7 @@ impl FsStore { Ok(all_outcomes) } + #[allow(clippy::too_many_arguments)] fn process_directory_entry>( &self, db: D,