mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-05 16:21:15 -03:00
Allow clippy::ptr_arg and fix cases
This commit is contained in:
2
src/env/environment_impl.rs
vendored
2
src/env/environment_impl.rs
vendored
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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)]
|
||||
|
||||
@@ -570,7 +570,7 @@ fn read_string(&mut self) -> Tok {
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user