From 977975ee650829a1f3c232cd5f641a7011bdce1d Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Fri, 28 Jan 2022 18:58:58 -0800 Subject: [PATCH] Ignore buggy ptr_arg clippy lint https://github.com/rust-lang/rust-clippy/issues/8366 error: writing `&mut Vec` instead of `&mut [_]` involves a new object where a slice will do --> src/read.rs:65:45 | 65 | fn parse_str<'s>(&'s mut self, scratch: &'s mut Vec) -> Result>; | ^^^^^^^^^^^^^^^ help: change this to: `&'s mut [u8]` | = note: `-D clippy::ptr-arg` implied by `-D clippy::all` = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg error: writing `&mut Vec` instead of `&mut [_]` involves a new object where a slice will do --> src/read.rs:76:18 | 76 | scratch: &'s mut Vec, | ^^^^^^^^^^^^^^^ help: change this to: `&'s mut [u8]` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg --- src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index 03fa1d891..4943a8d7c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -314,6 +314,8 @@ clippy::match_single_binding, clippy::needless_doctest_main, clippy::needless_late_init, + // clippy bug: https://github.com/rust-lang/rust-clippy/issues/8366 + clippy::ptr_arg, clippy::return_self_not_must_use, clippy::transmute_ptr_to_ptr, clippy::unnecessary_wraps,