Skip to content

Commit c1dd558

Browse files
committed
Ignore clippy::needless_pass_by_ref_mut warning
``` warning: this argument is a mutable reference, but not used mutably --> src/experimental/env.rs:38:15 | 38 | args: &mut &'a ArgsBytes<BUF_SIZE>, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider changing to: `&&'a ArgsBytes<BUF_SIZE>` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_pass_by_ref_mut = note: `#[warn(clippy::needless_pass_by_ref_mut)]` on by default ```
1 parent 82d4c34 commit c1dd558

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/experimental/env.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ mod sys {
3434

3535
const NUL: u8 = b'\0';
3636

37+
#[allow(clippy::needless_pass_by_ref_mut)]
3738
fn next_from_cmdline<'a, const BUF_SIZE: usize>(
3839
args: &mut &'a ArgsBytes<BUF_SIZE>,
3940
) -> Option<&'a [u8]> {

0 commit comments

Comments
 (0)