Skip to content

Commit 096aff7

Browse files
committed
Conform to elided_lifetimes_in_paths
1 parent 696d457 commit 096aff7

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

src/handler.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ impl RequestHandler {
167167
let mut easy = Easy2::new(handler);
168168
easy.get_mut().handle = easy.raw();
169169
let id = easy.get_ref().id();
170-
easy.get_mut().span.record("id", id);
170+
easy.get_mut().span.record("id", &id);
171171

172172
(easy, future)
173173
}

src/lib.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,11 @@
240240
clippy::all
241241
)]
242242
// These lints suggest to use features not available in our MSRV.
243-
#![allow(clippy::manual_strip, clippy::match_like_matches_macro)]
243+
#![allow(
244+
clippy::manual_strip,
245+
clippy::match_like_matches_macro,
246+
clippy::needless_borrow
247+
)]
244248

245249
use std::convert::TryFrom;
246250

src/util/io.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,15 +73,15 @@ where
7373
pub(crate) struct Sink;
7474

7575
impl AsyncWrite for Sink {
76-
fn poll_write(self: Pin<&mut Self>, _cx: &mut Context, buf: &[u8]) -> Poll<Result<usize>> {
76+
fn poll_write(self: Pin<&mut Self>, _cx: &mut Context<'_>, buf: &[u8]) -> Poll<Result<usize>> {
7777
Poll::Ready(Ok(buf.len()))
7878
}
7979

80-
fn poll_flush(self: Pin<&mut Self>, _cx: &mut Context) -> Poll<Result<()>> {
80+
fn poll_flush(self: Pin<&mut Self>, _cx: &mut Context<'_>) -> Poll<Result<()>> {
8181
Poll::Ready(Ok(()))
8282
}
8383

84-
fn poll_close(self: Pin<&mut Self>, _cx: &mut Context) -> Poll<Result<()>> {
84+
fn poll_close(self: Pin<&mut Self>, _cx: &mut Context<'_>) -> Poll<Result<()>> {
8585
Poll::Ready(Ok(()))
8686
}
8787
}

0 commit comments

Comments
 (0)