refactor: allow known clippy issues

feat/users
Tomáš Mládek 2024-03-30 16:41:21 +01:00
parent 94818b992a
commit 175518e3a6
4 changed files with 5 additions and 0 deletions

View File

@ -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 {

View File

@ -79,6 +79,7 @@ impl TryFrom<lexpr::Value> for Attribute {
}
}
#[allow(clippy::large_enum_variant)]
#[derive(Debug, Clone, PartialEq)]
pub enum QueryPart {
Matches(PatternQuery),

View File

@ -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 {

View File

@ -136,6 +136,7 @@ impl FsStore {
// Actual processing
let count = RwLock::new(0_usize);
#[allow(clippy::type_complexity)]
let resolve_cache: Arc<Mutex<LruCache<(Option<Address>, 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<D: Borrow<UpEndDatabase>>(
&self,
db: D,