You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
0 commit comments