1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-08-22 21:55:10 +02:00

better SharedBytes usage for h2

This commit is contained in:
Nikolay Kim
2017-12-14 20:48:31 -08:00
parent 2b0994e448
commit 106f43e874
6 changed files with 25 additions and 16 deletions

View File

@@ -154,7 +154,6 @@ impl<S> HttpRequest<S> {
// get mutable reference for inner message
// mutable reference should not be returned as result for request's method
#[inline]
#[allow(mutable_transmutes)]
#[cfg_attr(feature = "cargo-clippy", allow(mut_from_ref))]
fn as_mut(&self) -> &mut HttpMessage {
self.0.get_mut()