Closed klieth closed 9 years ago
This allows a PersistentError to be used when creating a new IronError like so:
PersistentError
IronError
fn handler(req: &mut Request) -> IronResult<Response> { let e : PersistentError = PersistentError::NotFound; Err(IronError::new(e, /* ... */)) }
I updated with your comments. Mind taking a look again?
Thanks @klieth, I've applied your patch to master!
This allows a
PersistentError
to be used when creating a newIronError
like so: