From 71a79ad6ff9b471b17efc2c4c897ca4529392d8b Mon Sep 17 00:00:00 2001 From: Emii Tatsuo Date: Fri, 27 Nov 2020 22:19:08 -0500 Subject: [PATCH] Fix stable build --- src/types/request.rs | 3 ++- src/types/status.rs | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/types/request.rs b/src/types/request.rs index 76eace2..7dcffde 100644 --- a/src/types/request.rs +++ b/src/types/request.rs @@ -60,7 +60,8 @@ impl Request { self.certificate = cert; } - 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 {