diff --git a/crates/nu-command/src/filters/items.rs b/crates/nu-command/src/filters/items.rs index 7a5988d2d1..4ac2375ee6 100644 --- a/crates/nu-command/src/filters/items.rs +++ b/crates/nu-command/src/filters/items.rs @@ -99,7 +99,6 @@ impl Command for Items { PipelineData::Value(Value::Record { cols, vals, .. }, ..) => Ok(cols .into_iter() .zip(vals.into_iter()) - .into_iter() .map_while(run_for_each_item) .into_pipeline_data(ctrlc)), // Errors diff --git a/crates/nu-protocol/src/engine/engine_state.rs b/crates/nu-protocol/src/engine/engine_state.rs index 64b9c561d7..26e2c5ca7b 100644 --- a/crates/nu-protocol/src/engine/engine_state.rs +++ b/crates/nu-protocol/src/engine/engine_state.rs @@ -1155,11 +1155,7 @@ impl<'a> StateWorkingSet<'a> { } pub fn unique_overlay_names(&self) -> HashSet<&Vec> { - let mut names: HashSet<&Vec> = self - .permanent_state - .active_overlay_names(&[]) - .into_iter() - .collect(); + let mut names: HashSet<&Vec> = self.permanent_state.active_overlay_names(&[]).collect(); for scope_frame in self.delta.scope.iter().rev() { for overlay_id in scope_frame.active_overlays.iter().rev() {