mirror of https://github.com/rwf2/Rocket.git
Explicitly import 'Result' in 'context!'.
This commit is contained in:
parent
1ba41b3990
commit
66d18bf665
|
@ -520,6 +520,7 @@ macro_rules! context {
|
||||||
($($key:ident $(: $value:expr)?),*$(,)?) => {{
|
($($key:ident $(: $value:expr)?),*$(,)?) => {{
|
||||||
use $crate::serde::ser::{Serialize, Serializer, SerializeMap};
|
use $crate::serde::ser::{Serialize, Serializer, SerializeMap};
|
||||||
use ::std::fmt::{Debug, Formatter};
|
use ::std::fmt::{Debug, Formatter};
|
||||||
|
use ::std::result::Result;
|
||||||
|
|
||||||
#[allow(non_camel_case_types)]
|
#[allow(non_camel_case_types)]
|
||||||
struct ContextMacroCtxObject<$($key: Serialize),*> {
|
struct ContextMacroCtxObject<$($key: Serialize),*> {
|
||||||
|
|
Loading…
Reference in New Issue