From 66d18bf66517e2765494d082629e9b9748ff8ad6 Mon Sep 17 00:00:00 2001 From: Gabriel Fontes Date: Thu, 28 Oct 2021 00:20:23 -0300 Subject: [PATCH] Explicitly import 'Result' in 'context!'. --- contrib/dyn_templates/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/contrib/dyn_templates/src/lib.rs b/contrib/dyn_templates/src/lib.rs index 7b29b425..d16dbb72 100644 --- a/contrib/dyn_templates/src/lib.rs +++ b/contrib/dyn_templates/src/lib.rs @@ -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),*> {