aboutsummaryrefslogtreecommitdiffstats
path: root/askama_parser
diff options
context:
space:
mode:
authorLibravatar René Kijewski <rene.kijewski@fu-berlin.de>2023-08-01 12:55:49 +0200
committerLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2023-08-01 13:04:41 +0200
commit04e585b9d26ff5976854176bce0ba2f6cb42c76c (patch)
tree4a6dc5f30f3e9207aa5c341c1f03dd320b24e7cf /askama_parser
parentc8399c75ed0b90f0976ffeaa220150b8c1c22421 (diff)
downloadaskama-04e585b9d26ff5976854176bce0ba2f6cb42c76c.tar.gz
askama-04e585b9d26ff5976854176bce0ba2f6cb42c76c.tar.bz2
askama-04e585b9d26ff5976854176bce0ba2f6cb42c76c.zip
parser: import `parser::{Expr, Node}`
Diffstat (limited to 'askama_parser')
-rw-r--r--askama_parser/src/node.rs4
-rw-r--r--askama_parser/src/tests.rs5
2 files changed, 4 insertions, 5 deletions
diff --git a/askama_parser/src/node.rs b/askama_parser/src/node.rs
index 02b90b5..d902936 100644
--- a/askama_parser/src/node.rs
+++ b/askama_parser/src/node.rs
@@ -9,9 +9,9 @@ use nom::multi::{fold_many0, many0, many1, separated_list0, separated_list1};
use nom::sequence::{delimited, pair, preceded, terminated, tuple};
use nom::{error_position, IResult};
-use super::expr::Expr;
use super::{
- bool_lit, char_lit, identifier, is_ws, keyword, num_lit, path, skip_till, str_lit, ws, State,
+ bool_lit, char_lit, identifier, is_ws, keyword, num_lit, path, skip_till, str_lit, ws, Expr,
+ State,
};
#[derive(Debug, PartialEq)]
diff --git a/askama_parser/src/tests.rs b/askama_parser/src/tests.rs
index dde127b..9cafaf0 100644
--- a/askama_parser/src/tests.rs
+++ b/askama_parser/src/tests.rs
@@ -1,6 +1,5 @@
-use super::expr::Expr;
-use super::node::{Lit, Node, Whitespace, Ws};
-use super::{Ast, Syntax};
+use super::node::{Lit, Whitespace, Ws};
+use super::{Ast, Expr, Node, Syntax};
fn check_ws_split(s: &str, res: &(&str, &str, &str)) {
let Lit { lws, val, rws } = Lit::split_ws_parts(s);