Skip to content

Commit

Permalink
Use global Result path in respond macro
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan770 committed Jun 9, 2020
1 parent 68ac9e0 commit 1eb60df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spartan/src/query/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ use tide::{Response, StatusCode};
macro_rules! respond {
($expr:expr) => {
match $expr {
std::result::Result::Ok(val) => val,
std::result::Result::Err(err) => {
::std::result::Result::Ok(val) => val,
::std::result::Result::Err(err) => {
return std::result::Result::Ok(err.respond());
}
}
Expand Down

0 comments on commit 1eb60df

Please sign in to comment.