diff --git a/src/status.rs b/src/status.rs index d98d24c3..58161c8f 100644 --- a/src/status.rs +++ b/src/status.rs @@ -132,7 +132,7 @@ impl StatusCode { /// assert_eq!(status.as_str(), "200"); /// ``` #[inline] - pub fn as_str(&self) -> &str { + pub fn as_str(&self) -> &'static str { let offset = (self.0.get() - 100) as usize; let offset = offset * 3;