1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2024-12-17 05:36:36 +00:00
This commit is contained in:
asonix 2024-05-18 12:38:07 -05:00
parent 35cadbbe0b
commit b492b27e4a

View file

@ -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
}