summaryrefslogtreecommitdiff
path: root/src/utils.rs
diff options
context:
space:
mode:
authorpennae <github@quasiparticle.net>2024-08-17 01:23:36 +0200
committerpennae <github@quasiparticle.net>2024-08-17 01:23:36 +0200
commit22711c21d0213ae78132c28b56be98f9d53af456 (patch)
treed4038d44a3c372f806444a556d97b3658efb1338 /src/utils.rs
parent231b3fcc43fec88c204cc3b8c5a29c2437690f01 (diff)
downloadminor-skulk-main.tar.gz
minor-skulk-main.tar.xz
minor-skulk-main.zip
update for depsHEADmain
Diffstat (limited to 'src/utils.rs')
-rw-r--r--src/utils.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/utils.rs b/src/utils.rs
index 70c8c11..dc08bc0 100644
--- a/src/utils.rs
+++ b/src/utils.rs
@@ -19,11 +19,11 @@ macro_rules! try_outcome_data {
($data:expr, $e:expr) => {
match $e {
::rocket::outcome::Outcome::Success(val) => val,
- ::rocket::outcome::Outcome::Failure(e) => {
- return ::rocket::outcome::Outcome::Failure(::std::convert::From::from(e))
+ ::rocket::outcome::Outcome::Error(e) => {
+ return ::rocket::outcome::Outcome::Error(::std::convert::From::from(e))
},
- ::rocket::outcome::Outcome::Forward(()) => {
- return ::rocket::outcome::Outcome::Forward($data)
+ ::rocket::outcome::Outcome::Forward(e) => {
+ return ::rocket::outcome::Outcome::Forward(($data, e))
},
}
};