Allow clippy::ptr_arg and fix cases

This commit is contained in:
Peter Ammon 2024-06-29 18:48:49 -07:00
parent cce2aab371
commit 90535d5b51
No known key found for this signature in database
3 changed files with 2 additions and 3 deletions

View File

@ -63,7 +63,7 @@ fn next_export_generation() -> ExportGeneration {
1 + GEN.fetch_add(1, Ordering::Relaxed)
}
fn set_umask(list_val: &Vec<WString>) -> EnvStackSetResult {
fn set_umask(list_val: &[WString]) -> EnvStackSetResult {
if list_val.len() != 1 || list_val[0].is_empty() {
return EnvStackSetResult::Invalid;
}

View File

@ -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)]

View File

@ -570,7 +570,7 @@ impl<'c> Tokenizer<'c> {
fn process_opening_quote(
this: &mut Tokenizer,
quoted_cmdsubs: &mut Vec<usize>,
paran_offsets: &Vec<usize>,
paran_offsets: &[usize],
quote: char,
) -> Result<(), usize> {
this.on_quote_toggle