Lint and clippy fixes

This commit is contained in:
Kyle 2023-02-08 22:52:48 -05:00
parent bed9762571
commit 85dbf4aaac
1 changed files with 3 additions and 5 deletions

View File

@ -108,7 +108,7 @@ impl SourceCode for [u8] {
} }
fn source_bytes(&self) -> &[u8] { fn source_bytes(&self) -> &[u8] {
&self[..] self
} }
} }
@ -125,8 +125,6 @@ impl<'src> SourceCode for &'src [u8] {
fn source_bytes(&self) -> &[u8] { fn source_bytes(&self) -> &[u8] {
self self
} }
} }
impl SourceCode for Vec<u8> { impl SourceCode for Vec<u8> {