Fixed returns but hitting lifetime issue
This commit is contained in:
parent
caa79d5ba2
commit
7b87e30ff9
@ -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());
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user