aboutsummaryrefslogtreecommitdiffstats
path: root/askama_derive/src/generator.rs
diff options
context:
space:
mode:
authorLibravatar René Kijewski <kijewski@library.vetmed.fu-berlin.de>2022-06-15 22:23:27 +0200
committerLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2022-06-15 22:37:04 +0200
commitb7f12bb25d86c4b34895be551412b8f45c95ea32 (patch)
tree5b2b0d58a303dfe575474838572d290e695808bb /askama_derive/src/generator.rs
parent71267bc88554c15caf4ee1e7c0d256556303e0e8 (diff)
downloadaskama-b7f12bb25d86c4b34895be551412b8f45c95ea32.tar.gz
askama-b7f12bb25d86c4b34895be551412b8f45c95ea32.tar.bz2
askama-b7f12bb25d86c4b34895be551412b8f45c95ea32.zip
Copy can be derived
Diffstat (limited to 'askama_derive/src/generator.rs')
-rw-r--r--askama_derive/src/generator.rs8
1 files changed, 2 insertions, 6 deletions
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),