From 00118965bd10909910ddfc600c9bf3ddefdd0235 Mon Sep 17 00:00:00 2001 From: Matthias Endler Date: Sat, 17 May 2025 21:12:38 +0200 Subject: [PATCH] Fix lints (#1705) --- lychee-bin/src/commands/dump.rs | 2 +- lychee-lib/src/client.rs | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/lychee-bin/src/commands/dump.rs b/lychee-bin/src/commands/dump.rs index 572c592..5dd797b 100644 --- a/lychee-bin/src/commands/dump.rs +++ b/lychee-bin/src/commands/dump.rs @@ -209,7 +209,7 @@ mod tests { let inputs: Vec> = vec![ Ok(String::from("test/path1")), - Err(io::Error::new(io::ErrorKind::Other, "test error").into()), + Err(io::Error::other("test error").into()), Ok(String::from("test/path2")), ]; let stream = stream::iter(inputs); diff --git a/lychee-lib/src/client.rs b/lychee-lib/src/client.rs index 865180e..fc281b4 100644 --- a/lychee-lib/src/client.rs +++ b/lychee-lib/src/client.rs @@ -288,7 +288,6 @@ pub struct ClientBuilder { } impl Default for ClientBuilder { - #[must_use] #[inline] fn default() -> Self { Self::builder().build()