Remove redundant slicing
This change removes an redundant slicing of a slice.
This lint was introduced with the Rust 1.51 release.
See
@@ -180,7 +180,7 @@ impl<'a> FrameRef<'a> {
}
}
- let mut buffer = &self.data[..];
+ let mut buffer = self.data;
while !buffer.is_empty() {
match writer.write(buffer) {
Ok(0) => {
