Fixed returns but hitting lifetime issue

This commit is contained in:
Tom Alexander 2020-05-02 16:04:10 -04:00
parent caa79d5ba2
commit 7b87e30ff9
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE

View File

@ -130,7 +130,7 @@ impl<'a> DustRenderer<'a> {
}; };
} else { } else {
match container.contents { match container.contents {
None => Ok("".to_owned()), None => return Ok("".to_owned()),
Some(body) => { Some(body) => {
let rendered_results: Result<Vec<String>, RenderError> = let rendered_results: Result<Vec<String>, RenderError> =
loop_elements loop_elements
@ -141,7 +141,6 @@ impl<'a> DustRenderer<'a> {
return Ok(rendered_slice.join("")); return Ok(rendered_slice.join(""));
} }
}; };
return Ok("".to_owned());
} }
} }
} }