Merge branch 'fix-stable-build' into kochab

This commit is contained in:
Emii Tatsuo 2020-11-27 22:23:55 -05:00
commit 67fe997eee
Signed by: Emi
GPG key ID: 68FAB2E2E6DFC98B
2 changed files with 4 additions and 2 deletions

View file

@ -111,7 +111,8 @@ impl Request {
self.trailing_segments = Some(segments); 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() 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 {