mirror of
https://github.com/actix/actix-web.git
synced 2024-12-17 05:36:36 +00:00
clippy
This commit is contained in:
parent
35cadbbe0b
commit
b492b27e4a
1 changed files with 1 additions and 1 deletions
|
@ -72,7 +72,7 @@ impl BigBytes {
|
|||
// Returns a slice of the frontmost buffer
|
||||
pub(super) fn front_slice(&self) -> &[u8] {
|
||||
if let Some(front) = self.frozen.front() {
|
||||
&front
|
||||
front
|
||||
} else {
|
||||
&self.buffer
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue