mirror of https://github.com/rwf2/Rocket.git
impl From<Status> for Failure
This commit is contained in:
parent
2b3aa01463
commit
4fde6628f0
|
@ -12,3 +12,9 @@ impl Responder<'static> for Failure {
|
||||||
Err(self.0)
|
Err(self.0)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl From<Status> for Failure {
|
||||||
|
fn from(status: Status) -> Self {
|
||||||
|
Failure(status)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue