circular-buffer: Use `[]` instead of `get().unwrap()`
Clippy suggested:
warning: called `.get().unwrap()` on a Vec. Using `[]` is more clear and more concise
= help: for further information visit
@@ -28,7 +28,7 @@ impl<T: Default + Clone> CircularBuffer<T> {
return Err(Error::EmptyBuffer);
}
- let v = self.buffer.get(self.start).unwrap().clone();
+ let v = self.buffer[self.start].clone();
self.advance_start();
Ok(v)
}
