Make the dust template parser all_consuming.

This commit is contained in:
Tom Alexander
2020-05-25 14:17:38 -04:00
parent 5b2ac7c2c2
commit 8121c93392
2 changed files with 1 additions and 2 deletions

View File

@@ -33,7 +33,6 @@ pub fn compile_template<'a>(
source: &'a str,
name: String,
) -> Result<CompiledTemplate<'a>, CompileError> {
// TODO: Make this all consuming
// TODO: This could use better error management
let (_remaining, parsed_template) = template(source).expect("Failed to compile template");
Ok(CompiledTemplate {