Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let application = match request.guard::<Application>() {
- Success(app) => app,
- _ => return Outcome::Failure((RocketStatus::BadRequest, ()))
- };
- // to this
- let application = request.guard::<Application>()?;
- // as I understand it, you should be able to implement a trait for this? But I don't know which one and I've tried several with tens of errors :/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement