mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-25 09:39:52 +08:00
Allow clippy::ptr_arg and fix cases
This commit is contained in:
parent
cce2aab371
commit
90535d5b51
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 @@ 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
|
||||
|
|
Loading…
Reference in New Issue
Block a user