From 4afe0a77aa9d430cc812e116203b8e4cc353bed2 Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Wed, 13 Apr 2022 10:47:32 +0200 Subject: [PATCH] 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) -> 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 ``` --- src/uu/mkdir/src/mkdir.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/uu/mkdir/src/mkdir.rs b/src/uu/mkdir/src/mkdir.rs index 7c8d4e413..12369b210 100644 --- a/src/uu/mkdir/src/mkdir.rs +++ b/src/uu/mkdir/src/mkdir.rs @@ -69,7 +69,7 @@ fn get_mode(matches: &ArgMatches, mode_had_minus_prefix: bool) -> Result) -> bool { +fn strip_minus_from_mode(_args: &mut [String]) -> bool { false }