From bdb6c0b89df5099fe6cf2e79e04e0efd21f64aa8 Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Sun, 2 Jul 2023 10:53:15 +0200 Subject: derive: move whitespace conversion into config module --- askama_derive/src/parser/node.rs | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'askama_derive/src/parser') diff --git a/askama_derive/src/parser/node.rs b/askama_derive/src/parser/node.rs index 8c122af..ce303bc 100644 --- a/askama_derive/src/parser/node.rs +++ b/askama_derive/src/parser/node.rs @@ -14,7 +14,6 @@ use super::{ tag_block_end, tag_block_start, tag_comment_end, tag_comment_start, tag_expr_end, tag_expr_start, take_content, ws, Expr, State, }; -use crate::config::WhitespaceHandling; #[derive(Debug, PartialEq)] pub(crate) enum Node<'a> { @@ -56,16 +55,6 @@ pub(crate) enum Whitespace { Minimize, } -impl From for Whitespace { - fn from(ws: WhitespaceHandling) -> Self { - match ws { - WhitespaceHandling::Suppress => Whitespace::Suppress, - WhitespaceHandling::Preserve => Whitespace::Preserve, - WhitespaceHandling::Minimize => Whitespace::Minimize, - } - } -} - #[derive(Debug, PartialEq)] pub(crate) struct Loop<'a> { pub(crate) ws1: Ws, -- cgit