From b492b27e4a7f4d604194592f90b822a7fc834e79 Mon Sep 17 00:00:00 2001 From: asonix Date: Sat, 18 May 2024 12:38:07 -0500 Subject: [PATCH] clippy --- actix-http/src/h1/big_bytes.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/actix-http/src/h1/big_bytes.rs b/actix-http/src/h1/big_bytes.rs index ef31a61de..2025916cf 100644 --- a/actix-http/src/h1/big_bytes.rs +++ b/actix-http/src/h1/big_bytes.rs @@ -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 }