diff options
author | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2023-09-29 14:02:11 +0200 |
---|---|---|
committer | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2023-09-29 16:13:24 +0200 |
commit | daa8d89b579f9a319e2bd9c59576e1d8ac76365e (patch) | |
tree | 2ecbbc78851cbb2f79564ff6ca6d738bd59f567f /askama_derive/src | |
parent | e527f5f065bc384515929ccec497d66ad85830d1 (diff) | |
download | askama-daa8d89b579f9a319e2bd9c59576e1d8ac76365e.tar.gz askama-daa8d89b579f9a319e2bd9c59576e1d8ac76365e.tar.bz2 askama-daa8d89b579f9a319e2bd9c59576e1d8ac76365e.zip |
Add MSRV checking in CI
Bump MSRV to 1.65 for the use of let .. else.
Diffstat (limited to '')
-rw-r--r-- | askama_derive/src/config.rs | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/askama_derive/src/config.rs b/askama_derive/src/config.rs index a4eec28..b2a13aa 100644 --- a/askama_derive/src/config.rs +++ b/askama_derive/src/config.rs @@ -203,11 +203,12 @@ impl RawConfig<'_> { } } -#[derive(Clone, Copy, PartialEq, Eq, Debug)] +#[derive(Clone, Copy, Default, PartialEq, Eq, Debug)] #[cfg_attr(feature = "serde", derive(Deserialize))] #[cfg_attr(feature = "serde", serde(field_identifier, rename_all = "lowercase"))] pub(crate) enum WhitespaceHandling { /// The default behaviour. It will leave the whitespace characters "as is". + #[default] Preserve, /// It'll remove all the whitespace characters before and after the jinja block. Suppress, @@ -227,12 +228,6 @@ impl From<WhitespaceHandling> for Whitespace { } } -impl Default for WhitespaceHandling { - fn default() -> Self { - WhitespaceHandling::Preserve - } -} - #[cfg_attr(feature = "serde", derive(Deserialize))] struct General<'a> { #[cfg_attr(feature = "serde", serde(borrow))] |