mirror of
https://github.com/uutils/coreutils
synced 2024-11-16 01:38:04 +00:00
mkdir.rs: Fix a clippy warning on clippy::ptr-arg
``` error: writing `&mut Vec` instead of `&mut [_]` involves a new object where a slice will do --> src\uu\mkdir\src/mkdir.rs:72:33 | 72 | fn strip_minus_from_mode(_args: &mut Vec<String>) -> bool { | ^^^^^^^^^^^^^^^^ help: change this to: `&mut [String]` | = note: `-D clippy::ptr-arg` implied by `-D warnings` = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg ```
This commit is contained in:
parent
92f01a79dd
commit
4afe0a77aa
1 changed files with 1 additions and 1 deletions
|
@ -69,7 +69,7 @@ fn get_mode(matches: &ArgMatches, mode_had_minus_prefix: bool) -> Result<u32, St
|
|||
}
|
||||
|
||||
#[cfg(windows)]
|
||||
fn strip_minus_from_mode(_args: &mut Vec<String>) -> bool {
|
||||
fn strip_minus_from_mode(_args: &mut [String]) -> bool {
|
||||
false
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue