mirror of
https://github.com/fafhrd91/actix-web
synced 2025-07-01 08:45:10 +02:00
improve code readability
This commit is contained in:
@ -104,7 +104,7 @@ where
|
||||
CompressResponse {
|
||||
encoding,
|
||||
fut: self.service.call(req),
|
||||
_t: PhantomData,
|
||||
_phantom: PhantomData,
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -119,7 +119,7 @@ where
|
||||
#[pin]
|
||||
fut: S::Future,
|
||||
encoding: ContentEncoding,
|
||||
_t: PhantomData<B>,
|
||||
_phantom: PhantomData<B>,
|
||||
}
|
||||
|
||||
impl<S, B> Future for CompressResponse<S, B>
|
||||
|
@ -236,7 +236,7 @@ where
|
||||
fut: self.service.call(req),
|
||||
format: None,
|
||||
time: OffsetDateTime::now_utc(),
|
||||
_t: PhantomData,
|
||||
_phantom: PhantomData,
|
||||
}
|
||||
} else {
|
||||
let now = OffsetDateTime::now_utc();
|
||||
@ -249,7 +249,7 @@ where
|
||||
fut: self.service.call(req),
|
||||
format: Some(format),
|
||||
time: now,
|
||||
_t: PhantomData,
|
||||
_phantom: PhantomData,
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -266,7 +266,7 @@ where
|
||||
fut: S::Future,
|
||||
time: OffsetDateTime,
|
||||
format: Option<Format>,
|
||||
_t: PhantomData<B>,
|
||||
_phantom: PhantomData<B>,
|
||||
}
|
||||
|
||||
impl<S, B> Future for LoggerResponse<S, B>
|
||||
@ -522,7 +522,7 @@ impl FormatText {
|
||||
};
|
||||
*self = FormatText::Str(s.to_string())
|
||||
}
|
||||
_ => (),
|
||||
_ => {},
|
||||
}
|
||||
}
|
||||
|
||||
@ -587,7 +587,7 @@ impl FormatText {
|
||||
|
||||
*self = s;
|
||||
}
|
||||
_ => (),
|
||||
_ => {},
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user