diff --git a/cubesys/src/commands.rs b/cubesys/src/commands.rs index 27bbc91..3059332 100644 --- a/cubesys/src/commands.rs +++ b/cubesys/src/commands.rs @@ -816,7 +816,7 @@ impl Session { path, Kind::Kernel, cell.name().unwrap_or(path), - &cell.links().iter().copied().collect::>(), + cell.links(), &cell.code, None, None, @@ -988,7 +988,7 @@ impl Session { // Optional metatags: `doc_type=` and/or `title=` may // follow. These are what `query ` matches on. let mut header = CubeHeader::new(); - while let Some(tok) = it.next() { + for tok in it { if let Some(v) = tok.strip_prefix("doc_type=") { header.doc_type = Some(v.to_string()); } else if let Some(v) = tok.strip_prefix("title=") { diff --git a/cubesys/src/lib.rs b/cubesys/src/lib.rs index af6a962..e9e3e3f 100644 --- a/cubesys/src/lib.rs +++ b/cubesys/src/lib.rs @@ -133,6 +133,7 @@ pub fn load_code_cell( /// Build a [`CodeCell`] from parts and write it back as a record at `path`, /// so code written by the VM (or tooling) is visible to cubefs at that path. +#[allow(clippy::too_many_arguments)] pub fn store_code_cell( store: &mut CubeStore, path: &str, diff --git a/cubesys/src/store.rs b/cubesys/src/store.rs index 7d08451..c32b6e2 100644 --- a/cubesys/src/store.rs +++ b/cubesys/src/store.rs @@ -696,6 +696,7 @@ impl ConcurrentStore { /// Store a code cell at `path` (the path->code bridge), durability-logged. /// `owner` (when set) is stamped on the record's `owner_local_user` field /// so owner enforcement (Task 6) can later reject cross-owner overwrites. + #[allow(clippy::too_many_arguments)] pub fn put_code_cell( &self, path: &str,