Skip to content

Commit 977975e

Browse files
committed
Ignore buggy ptr_arg clippy lint
rust-lang/rust-clippy#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<u8>) -> Result<Reference<'de, 's, str>>; | ^^^^^^^^^^^^^^^ 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<u8>, | ^^^^^^^^^^^^^^^ help: change this to: `&'s mut [u8]` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_arg
1 parent aa78d6c commit 977975e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/lib.rs

+2
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,8 @@
314314
clippy::match_single_binding,
315315
clippy::needless_doctest_main,
316316
clippy::needless_late_init,
317+
// clippy bug: https://github.com/rust-lang/rust-clippy/issues/8366
318+
clippy::ptr_arg,
317319
clippy::return_self_not_must_use,
318320
clippy::transmute_ptr_to_ptr,
319321
clippy::unnecessary_wraps,

0 commit comments

Comments
 (0)