mirror of https://github.com/zkat/miette.git
Lint and clippy fixes
This commit is contained in:
parent
bed9762571
commit
85dbf4aaac
|
|
@ -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> {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue