Fix stable build

This commit is contained in:
Emii Tatsuo 2020-11-27 22:19:08 -05:00
parent 3a999a16fe
commit 71a79ad6ff
Signed by: Emi
GPG Key ID: 68FAB2E2E6DFC98B
2 changed files with 4 additions and 2 deletions

View File

@ -60,7 +60,8 @@ impl Request {
self.certificate = cert; 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() self.certificate.as_ref()
} }
} }

View File

@ -29,7 +29,8 @@ impl Status {
self.category().is_success() 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; let class = self.0 / 10;
match class { match class {