mirror of
https://github.com/fafhrd91/actix-web
synced 2025-02-21 11:54:47 +01:00
clippy
This commit is contained in:
parent
35cadbbe0b
commit
b492b27e4a
@ -72,7 +72,7 @@ impl BigBytes {
|
|||||||
// Returns a slice of the frontmost buffer
|
// Returns a slice of the frontmost buffer
|
||||||
pub(super) fn front_slice(&self) -> &[u8] {
|
pub(super) fn front_slice(&self) -> &[u8] {
|
||||||
if let Some(front) = self.frozen.front() {
|
if let Some(front) = self.frozen.front() {
|
||||||
&front
|
front
|
||||||
} else {
|
} else {
|
||||||
&self.buffer
|
&self.buffer
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user