Skip to content

Commit

Permalink
🩹 Handle clippy reports
Browse files Browse the repository at this point in the history
  • Loading branch information
H1rono committed Oct 6, 2024
1 parent 71dfaff commit 47a863f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ pub struct Error {
source: Option<Box<dyn std::error::Error + Send + Sync + 'static>>,

Check warning on line 9 in src/error.rs

View check run for this annotation

Codecov / codecov/patch

src/error.rs#L9

Added line #L9 was not covered by tests
}

#[allow(clippy::module_name_repetitions)]
#[must_use]

Check warning on line 13 in src/error.rs

View check run for this annotation

Codecov / codecov/patch

src/error.rs#L11-L13

Added lines #L11 - L13 were not covered by tests
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
#[non_exhaustive]
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit 47a863f

Please sign in to comment.