From c18d47db2f51a7f47bea13f1e98eb9150a1963f2 Mon Sep 17 00:00:00 2001 From: Sean McArthur Date: Thu, 11 May 2017 14:25:35 -0700 Subject: [PATCH] refactor(status): add allow(deprecated) to StatusClass enum for older rust versions --- src/status.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/status.rs b/src/status.rs index 52a57233..1fccde59 100644 --- a/src/status.rs +++ b/src/status.rs @@ -591,6 +591,7 @@ impl From for u16 { /// to get the appropriate *category* of status. #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Copy)] #[deprecated(note = "StatusClass is going away. Use the StatusCode::is_() methods instead.")] +#[allow(deprecated)] pub enum StatusClass { /// 1xx (Informational): The request was received, continuing process Informational,