From 17ee42cb6a49e4bf4f7a61359445d46b1fc3d74c Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Sun, 2 Jul 2023 11:02:36 +0200 Subject: parser: move trait impl closer to type definition --- askama_parser/src/lib.rs | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'askama_parser/src/lib.rs') diff --git a/askama_parser/src/lib.rs b/askama_parser/src/lib.rs index e7c387b..bebf020 100644 --- a/askama_parser/src/lib.rs +++ b/askama_parser/src/lib.rs @@ -48,17 +48,6 @@ impl<'a> State<'a> { } } -impl From for Whitespace { - fn from(c: char) -> Self { - match c { - '+' => Self::Preserve, - '-' => Self::Suppress, - '~' => Self::Minimize, - _ => panic!("unsupported `Whitespace` conversion"), - } - } -} - mod _parsed { use std::mem; -- cgit