aboutsummaryrefslogtreecommitdiff
path: root/src/ast.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/ast.rs')
-rw-r--r--src/ast.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ast.rs b/src/ast.rs
index 7e83b3d..ec5f953 100644
--- a/src/ast.rs
+++ b/src/ast.rs
@@ -10,7 +10,7 @@ impl Program {
10 } 10 }
11 } 11 }
12 12
13 pub fn from_str(mut self, i: &str) -> Result<Self, nom::error::Error<&str>> { 13 pub fn with_file(mut self, i: &str) -> Result<Self, nom::error::Error<&str>> {
14 use nom::Finish; 14 use nom::Finish;
15 let (remaining_input, stanzas) = crate::parser::parse_file(i).finish()?; 15 let (remaining_input, stanzas) = crate::parser::parse_file(i).finish()?;
16 assert!(remaining_input.trim().is_empty(), "{remaining_input}"); 16 assert!(remaining_input.trim().is_empty(), "{remaining_input}");