Address compilation warnings in the Nightly channel of Rust.
This commit is contained in:
3 files changed
+30
-30
No files matched your search
+1
-1
@@ -138,7 +138,7 @@ impl DecodingResult {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn as_buffer(&mut self, start: usize) -> DecodingBuffer {
|
||||
pub fn as_buffer(&mut self, start: usize) -> DecodingBuffer<'_> {
|
||||
match *self {
|
||||
DecodingResult::U8(ref mut buf) => DecodingBuffer::U8(&mut buf[start..]),
|
||||
DecodingResult::U16(ref mut buf) => DecodingBuffer::U16(&mut buf[start..]),
|
||||
|
||||
Reference in new issue
Block a user