From 1eb60df680a02c5a9b0c7abaeffc2bcafaee0507 Mon Sep 17 00:00:00 2001 From: ivan770 Date: Tue, 9 Jun 2020 20:02:11 +0300 Subject: [PATCH] Use global Result path in respond macro --- spartan/src/query/error.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spartan/src/query/error.rs b/spartan/src/query/error.rs index 5c5cbcac..1e2977ae 100644 --- a/spartan/src/query/error.rs +++ b/spartan/src/query/error.rs @@ -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()); } }