Skip to content

Commit c10072a

Browse files
committed
Make a sacrifice to appease the clippy gods.
1 parent 9b5c678 commit c10072a

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/parse.rs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ use crate::error::{Error, Result};
1010
use crate::types::ResponseData;
1111
use crate::types::*;
1212

13-
pub(crate) fn parse_names<'a, T: Stream<Item = io::Result<ResponseData>> + Unpin + Send>(
14-
stream: &'a mut T,
13+
pub(crate) fn parse_names<T: Stream<Item = io::Result<ResponseData>> + Unpin + Send>(
14+
stream: &mut T,
1515
unsolicited: channel::Sender<UnsolicitedResponse>,
1616
command_tag: RequestId,
17-
) -> impl Stream<Item = Result<Name>> + 'a + Send + Unpin {
17+
) -> impl Stream<Item = Result<Name>> + '_ + Send + Unpin {
1818
use futures::{FutureExt, StreamExt};
1919

2020
StreamExt::filter_map(
@@ -56,11 +56,11 @@ fn filter_sync(res: &io::Result<ResponseData>, command_tag: &RequestId) -> bool
5656
}
5757
}
5858

59-
pub(crate) fn parse_fetches<'a, T: Stream<Item = io::Result<ResponseData>> + Unpin + Send>(
60-
stream: &'a mut T,
59+
pub(crate) fn parse_fetches<T: Stream<Item = io::Result<ResponseData>> + Unpin + Send>(
60+
stream: &mut T,
6161
unsolicited: channel::Sender<UnsolicitedResponse>,
6262
command_tag: RequestId,
63-
) -> impl Stream<Item = Result<Fetch>> + 'a + Send + Unpin {
63+
) -> impl Stream<Item = Result<Fetch>> + '_ + Send + Unpin {
6464
use futures::{FutureExt, StreamExt};
6565

6666
StreamExt::filter_map(
@@ -85,11 +85,11 @@ pub(crate) fn parse_fetches<'a, T: Stream<Item = io::Result<ResponseData>> + Unp
8585
)
8686
}
8787

88-
pub(crate) fn parse_expunge<'a, T: Stream<Item = io::Result<ResponseData>> + Unpin + Send>(
89-
stream: &'a mut T,
88+
pub(crate) fn parse_expunge<T: Stream<Item = io::Result<ResponseData>> + Unpin + Send>(
89+
stream: &mut T,
9090
unsolicited: channel::Sender<UnsolicitedResponse>,
9191
command_tag: RequestId,
92-
) -> impl Stream<Item = Result<u32>> + 'a + Send {
92+
) -> impl Stream<Item = Result<u32>> + '_ + Send {
9393
use futures::StreamExt;
9494

9595
StreamExt::filter_map(
@@ -113,8 +113,8 @@ pub(crate) fn parse_expunge<'a, T: Stream<Item = io::Result<ResponseData>> + Unp
113113
)
114114
}
115115

116-
pub(crate) async fn parse_capabilities<'a, T: Stream<Item = io::Result<ResponseData>> + Unpin>(
117-
stream: &'a mut T,
116+
pub(crate) async fn parse_capabilities<T: Stream<Item = io::Result<ResponseData>> + Unpin>(
117+
stream: &mut T,
118118
unsolicited: channel::Sender<UnsolicitedResponse>,
119119
command_tag: RequestId,
120120
) -> Result<Capabilities> {

0 commit comments

Comments
 (0)