commit
1296f1bba4
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue