1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-07-01 16:55:08 +02:00

rust 1.64 clippy run (#2891)

This commit is contained in:
Rob Ede
2022-09-25 20:54:17 +01:00
committed by GitHub
parent 172c4c7a0a
commit cc7145d41d
24 changed files with 58 additions and 67 deletions

View File

@ -83,13 +83,13 @@ impl<B> Response<B> {
/// Returns a reference to the head of this response.
#[inline]
pub fn head(&self) -> &ResponseHead {
&*self.head
&self.head
}
/// Returns a mutable reference to the head of this response.
#[inline]
pub fn head_mut(&mut self) -> &mut ResponseHead {
&mut *self.head
&mut self.head
}
/// Returns the status code of this response.