Merge pull request #36 from Alch-Emi/fix-stable-build

Fix stable build
This commit is contained in:
panicbit 2020-11-28 05:01:10 +01:00 committed by GitHub
commit 1296f1bba4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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 {