Skip to content

Commit

Permalink
Conform to elided_lifetimes_in_paths
Browse files Browse the repository at this point in the history
  • Loading branch information
sagebind committed Nov 7, 2022
1 parent 696d457 commit 096aff7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ impl RequestHandler {
let mut easy = Easy2::new(handler);
easy.get_mut().handle = easy.raw();
let id = easy.get_ref().id();
easy.get_mut().span.record("id", id);
easy.get_mut().span.record("id", &id);

(easy, future)
}
Expand Down
6 changes: 5 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,11 @@
clippy::all
)]
// These lints suggest to use features not available in our MSRV.
#![allow(clippy::manual_strip, clippy::match_like_matches_macro)]
#![allow(
clippy::manual_strip,
clippy::match_like_matches_macro,
clippy::needless_borrow
)]

use std::convert::TryFrom;

Expand Down
6 changes: 3 additions & 3 deletions src/util/io.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,15 +73,15 @@ where
pub(crate) struct Sink;

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

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

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

0 comments on commit 096aff7

Please sign in to comment.