Add Clone and Copy impl to PreEscaped via derive ()

This commit is contained in:
Lukas Kalbertodt 2017-08-26 02:14:13 +02:00 committed by Chris Wong
parent 4d46029745
commit 97a4bdf30e

View file

@ -95,7 +95,7 @@ impl Render for str {
} }
/// A wrapper that renders the inner value without escaping. /// A wrapper that renders the inner value without escaping.
#[derive(Debug)] #[derive(Debug, Clone, Copy)]
pub struct PreEscaped<T: AsRef<str>>(pub T); pub struct PreEscaped<T: AsRef<str>>(pub T);
impl<T: AsRef<str>> Render for PreEscaped<T> { impl<T: AsRef<str>> Render for PreEscaped<T> {