mirror of https://github.com/rwf2/Rocket.git
Derive 'PartialOrd', 'Ord', and 'Hash' for 'State'.
This commit is contained in:
parent
8eb1fff93f
commit
15c2ef7aaa
|
@ -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> {
|
||||
|
|
Loading…
Reference in New Issue