Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mkdir.rs: Fix a clippy warning on clippy::ptr-arg #3393

Merged
merged 1 commit into from
Apr 13, 2022
Merged

Commits on Apr 13, 2022

  1. 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
    ```
    sylvestre authored Apr 13, 2022
    Configuration menu
    Copy the full SHA
    4afe0a7 View commit details
    Browse the repository at this point in the history