Skip to content

Commit d41c6a9

Browse files
Fix new clippy lint
1 parent db90ff8 commit d41c6a9

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

askama_derive/src/input.rs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -673,20 +673,15 @@ pub(crate) enum Source {
673673
Source(Arc<str>),
674674
}
675675

676-
#[derive(Clone, Copy, Debug, PartialEq, Hash)]
676+
#[derive(Clone, Copy, Debug, PartialEq, Hash, Default)]
677677
pub(crate) enum Print {
678678
All,
679679
Ast,
680680
Code,
681+
#[default]
681682
None,
682683
}
683684

684-
impl Default for Print {
685-
fn default() -> Self {
686-
Self::None
687-
}
688-
}
689-
690685
impl FromStr for Print {
691686
type Err = String;
692687

0 commit comments

Comments
 (0)