chore: apply new lint warnings from latest clippy (#561)
This commit is contained in:
parent
e21895206c
commit
b483b3a17a
23 changed files with 185 additions and 171 deletions
|
|
@ -13,7 +13,7 @@ pub struct Decoder<'b> {
|
|||
}
|
||||
|
||||
impl<'b> Decoder<'b> {
|
||||
pub fn new(bytes: &'b [u8]) -> Decoder {
|
||||
pub fn new(bytes: &'b [u8]) -> Decoder<'b> {
|
||||
Decoder {
|
||||
buffer: bytes,
|
||||
pos: 0,
|
||||
|
|
|
|||
|
|
@ -1120,7 +1120,7 @@ impl<'b, T> KeepRaw<'b, T> {
|
|||
}
|
||||
}
|
||||
|
||||
impl<'b, T> Deref for KeepRaw<'b, T> {
|
||||
impl<T> Deref for KeepRaw<'_, T> {
|
||||
type Target = T;
|
||||
|
||||
fn deref(&self) -> &Self::Target {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue