From b7f12bb25d86c4b34895be551412b8f45c95ea32 Mon Sep 17 00:00:00 2001 From: René Kijewski Date: Wed, 15 Jun 2022 22:23:27 +0200 Subject: Copy can be derived --- askama_derive/src/generator.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'askama_derive/src/generator.rs') diff --git a/askama_derive/src/generator.rs b/askama_derive/src/generator.rs index 39a5380..7384c1d 100644 --- a/askama_derive/src/generator.rs +++ b/askama_derive/src/generator.rs @@ -2048,23 +2048,19 @@ fn median(sizes: &mut [usize]) -> usize { } } -#[derive(Clone, PartialEq)] +#[derive(Clone, Copy, PartialEq)] enum AstLevel { Top, Block, Nested, } -impl Copy for AstLevel {} - -#[derive(Clone)] +#[derive(Clone, Copy)] enum DisplayWrap { Wrapped, Unwrapped, } -impl Copy for DisplayWrap {} - #[derive(Debug)] enum Writable<'a> { Lit(&'a str), -- cgit