mirror of
https://github.com/tokio-rs/axum.git
synced 2025-10-01 15:00:46 +00:00
chore: fix new clippy lint (#2994)
This commit is contained in:
parent
0ddc63f77e
commit
65ad603701
@ -289,7 +289,7 @@ struct PrivateCookieJarIter<'a, K> {
|
|||||||
iter: cookie::Iter<'a>,
|
iter: cookie::Iter<'a>,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'a, K> Iterator for PrivateCookieJarIter<'a, K> {
|
impl<K> Iterator for PrivateCookieJarIter<'_, K> {
|
||||||
type Item = Cookie<'static>;
|
type Item = Cookie<'static>;
|
||||||
|
|
||||||
fn next(&mut self) -> Option<Self::Item> {
|
fn next(&mut self) -> Option<Self::Item> {
|
||||||
|
@ -307,7 +307,7 @@ struct SignedCookieJarIter<'a, K> {
|
|||||||
iter: cookie::Iter<'a>,
|
iter: cookie::Iter<'a>,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'a, K> Iterator for SignedCookieJarIter<'a, K> {
|
impl<K> Iterator for SignedCookieJarIter<'_, K> {
|
||||||
type Item = Cookie<'static>;
|
type Item = Cookie<'static>;
|
||||||
|
|
||||||
fn next(&mut self) -> Option<Self::Item> {
|
fn next(&mut self) -> Option<Self::Item> {
|
||||||
|
@ -107,7 +107,7 @@ pub struct Field<'a> {
|
|||||||
_multipart: &'a mut Multipart,
|
_multipart: &'a mut Multipart,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'a> Stream for Field<'a> {
|
impl Stream for Field<'_> {
|
||||||
type Item = Result<Bytes, MultipartError>;
|
type Item = Result<Bytes, MultipartError>;
|
||||||
|
|
||||||
fn poll_next(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Option<Self::Item>> {
|
fn poll_next(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Option<Self::Item>> {
|
||||||
|
@ -558,7 +558,7 @@ pub struct RouterAsService<'a, B, S = ()> {
|
|||||||
_marker: PhantomData<B>,
|
_marker: PhantomData<B>,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'a, B> Service<Request<B>> for RouterAsService<'a, B, ()>
|
impl<B> Service<Request<B>> for RouterAsService<'_, B, ()>
|
||||||
where
|
where
|
||||||
B: HttpBody<Data = bytes::Bytes> + Send + 'static,
|
B: HttpBody<Data = bytes::Bytes> + Send + 'static,
|
||||||
B::Error: Into<axum_core::BoxError>,
|
B::Error: Into<axum_core::BoxError>,
|
||||||
@ -578,7 +578,7 @@ where
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'a, B, S> fmt::Debug for RouterAsService<'a, B, S>
|
impl<B, S> fmt::Debug for RouterAsService<'_, B, S>
|
||||||
where
|
where
|
||||||
S: fmt::Debug,
|
S: fmt::Debug,
|
||||||
{
|
{
|
||||||
|
@ -112,7 +112,7 @@ impl<'a> MakeWriter<'a> for TestMakeWriter {
|
|||||||
|
|
||||||
struct Writer<'a>(&'a TestMakeWriter);
|
struct Writer<'a>(&'a TestMakeWriter);
|
||||||
|
|
||||||
impl<'a> io::Write for Writer<'a> {
|
impl io::Write for Writer<'_> {
|
||||||
fn write(&mut self, buf: &[u8]) -> io::Result<usize> {
|
fn write(&mut self, buf: &[u8]) -> io::Result<usize> {
|
||||||
match &mut *self.0.write.lock().unwrap() {
|
match &mut *self.0.write.lock().unwrap() {
|
||||||
Some(vec) => {
|
Some(vec) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user