Explicitly import 'Result' in 'context!'.

This commit is contained in:
Gabriel Fontes 2021-10-28 00:20:23 -03:00 committed by Sergio Benitez
parent 1ba41b3990
commit 66d18bf665
1 changed files with 1 additions and 0 deletions

View File

@ -520,6 +520,7 @@ macro_rules! context {
($($key:ident $(: $value:expr)?),*$(,)?) => {{
use $crate::serde::ser::{Serialize, Serializer, SerializeMap};
use ::std::fmt::{Debug, Formatter};
use ::std::result::Result;
#[allow(non_camel_case_types)]
struct ContextMacroCtxObject<$($key: Serialize),*> {