diff --git a/src/env/environment_impl.rs b/src/env/environment_impl.rs index d772c0eba..111436fc9 100644 --- a/src/env/environment_impl.rs +++ b/src/env/environment_impl.rs @@ -63,7 +63,7 @@ fn next_export_generation() -> ExportGeneration { 1 + GEN.fetch_add(1, Ordering::Relaxed) } -fn set_umask(list_val: &Vec) -> EnvStackSetResult { +fn set_umask(list_val: &[WString]) -> EnvStackSetResult { if list_val.len() != 1 || list_val[0].is_empty() { return EnvStackSetResult::Invalid; } diff --git a/src/lib.rs b/src/lib.rs index ddfb8fb7d..8754e76d8 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -19,7 +19,6 @@ #![allow(clippy::needless_return)] #![allow(clippy::new_without_default)] #![allow(clippy::option_map_unit_fn)] -#![allow(clippy::ptr_arg)] #![allow(clippy::redundant_slicing)] #![allow(clippy::too_many_arguments)] #![allow(clippy::uninlined_format_args)] diff --git a/src/tokenizer.rs b/src/tokenizer.rs index f13f80b4d..9f37e5e6e 100644 --- a/src/tokenizer.rs +++ b/src/tokenizer.rs @@ -570,7 +570,7 @@ impl<'c> Tokenizer<'c> { fn process_opening_quote( this: &mut Tokenizer, quoted_cmdsubs: &mut Vec, - paran_offsets: &Vec, + paran_offsets: &[usize], quote: char, ) -> Result<(), usize> { this.on_quote_toggle