diff --git a/src/types/request.rs b/src/types/request.rs index a914a76..a4889d3 100644 --- a/src/types/request.rs +++ b/src/types/request.rs @@ -111,7 +111,8 @@ impl Request { self.trailing_segments = Some(segments); } - pub const fn certificate(&self) -> Option<&Certificate> { + #[allow(clippy::missing_const_for_fn)] + pub fn certificate(&self) -> Option<&Certificate> { self.certificate.as_ref() } diff --git a/src/types/status.rs b/src/types/status.rs index 18c58a1..ba9ee71 100644 --- a/src/types/status.rs +++ b/src/types/status.rs @@ -29,7 +29,8 @@ impl Status { self.category().is_success() } - pub const fn category(&self) -> StatusCategory { + #[allow(clippy::missing_const_for_fn)] + pub fn category(&self) -> StatusCategory { let class = self.0 / 10; match class {