From 47a863f4b27bf57961fa2281aee9785cb554b5fa Mon Sep 17 00:00:00 2001 From: H1rono Date: Sun, 6 Oct 2024 22:47:08 +0900 Subject: [PATCH] :adhesive_bandage: Handle clippy reports --- src/error.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/error.rs b/src/error.rs index 568ba46..9f8224f 100644 --- a/src/error.rs +++ b/src/error.rs @@ -9,6 +9,7 @@ pub struct Error { source: Option>, } +#[allow(clippy::module_name_repetitions)] #[must_use] #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] #[non_exhaustive] @@ -78,7 +79,7 @@ impl std::error::Error for Error { } impl ErrorKind { - pub(crate) fn as_str(&self) -> &'static str { + pub(crate) fn as_str(self) -> &'static str { match self { Self::ContentTypeNotFound => "Content-Type is not set", Self::ReadContentTypeFailed => "Failed to read Content-Type value",