From 32154a2da7f4c7e4e9f1890c6593a5841739875c Mon Sep 17 00:00:00 2001 From: Lukas Kalbertodt Date: Fri, 25 Aug 2017 11:21:45 +0200 Subject: [PATCH] Add `Clone` and `Copy` impl to `PreEscaped` via derive --- maud/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maud/src/lib.rs b/maud/src/lib.rs index 591d04ec..4a28f304 100644 --- a/maud/src/lib.rs +++ b/maud/src/lib.rs @@ -95,7 +95,7 @@ impl Render for str { } /// A wrapper that renders the inner value without escaping. -#[derive(Debug)] +#[derive(Debug, Clone, Copy)] pub struct PreEscaped>(pub T); impl> Render for PreEscaped {