refactor(status): add allow(deprecated) to StatusClass enum for older rust versions

This commit is contained in:
Sean McArthur
2017-05-11 14:25:35 -07:00
parent 638582fae2
commit c18d47db2f

View File

@@ -591,6 +591,7 @@ impl From<StatusCode> 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_<class>() methods instead.")]
#[allow(deprecated)]
pub enum StatusClass {
/// 1xx (Informational): The request was received, continuing process
Informational,