Derive 'PartialOrd', 'Ord', and 'Hash' for 'State'.

This commit is contained in:
Sergio Benitez 2017-07-03 15:39:24 -07:00
parent 8eb1fff93f
commit 15c2ef7aaa
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ use http::Status;
/// }
/// }
/// ```
#[derive(Debug, PartialEq, Eq)]
#[derive(Debug, PartialEq, Eq, PartialOrd, Ord, Hash)]
pub struct State<'r, T: Send + Sync + 'static>(&'r T);
impl<'r, T: Send + Sync + 'static> State<'r, T> {