aboutsummaryrefslogtreecommitdiffstats
path: root/askama_parser
diff options
context:
space:
mode:
Diffstat (limited to 'askama_parser')
-rw-r--r--askama_parser/src/lib.rs10
1 files changed, 9 insertions, 1 deletions
diff --git a/askama_parser/src/lib.rs b/askama_parser/src/lib.rs
index 37c1977..a19181d 100644
--- a/askama_parser/src/lib.rs
+++ b/askama_parser/src/lib.rs
@@ -23,7 +23,7 @@ mod node;
mod tests;
mod _parsed {
- use std::mem;
+ use std::{fmt, mem};
use super::{Ast, Node, ParseError, Syntax};
@@ -49,6 +49,14 @@ mod _parsed {
&self.ast.nodes
}
}
+
+ impl fmt::Debug for Parsed {
+ fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
+ f.debug_struct("Parsed")
+ .field("nodes", &self.ast.nodes)
+ .finish_non_exhaustive()
+ }
+ }
}
pub use _parsed::Parsed;