From d466bb0f24dcca7d3c7e8a4aff6b7757f79d6675 Mon Sep 17 00:00:00 2001 From: Magnus Ulimoen Date: Wed, 23 Jun 2021 22:29:16 +0200 Subject: [PATCH] Implement Clone for HashMapContext --- src/context/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/context/mod.rs b/src/context/mod.rs index 9f11a11..200ae93 100644 --- a/src/context/mod.rs +++ b/src/context/mod.rs @@ -70,7 +70,7 @@ impl Context for EmptyContext { /// *Value and function mappings are stored independently, meaning that there can be a function and a value with the same identifier.* /// /// This context is type-safe, meaning that an identifier that is assigned a value of some type once cannot be assigned a value of another type. -#[derive(Debug, Default)] +#[derive(Clone, Debug, Default)] #[cfg_attr(feature = "serde_support", derive(Serialize, Deserialize))] pub struct HashMapContext { variables: HashMap,