fix: clippy

This commit is contained in:
Gerald Pinder 2023-12-17 22:04:27 -05:00
parent 5b1f99759c
commit f437bdaffa
2 changed files with 7 additions and 8 deletions

View file

@ -29,7 +29,7 @@ use tera::{Context, Tera};
pub const DEFAULT_CONTAINERFILE: &str = include_str!("../templates/Containerfile.tera");
fn setup_tera(recipe: &Path, containerfile: Option<&PathBuf>) -> Result<(Tera, Context)> {
let recipe_de = serde_yaml::from_str::<Recipe>(fs::read_to_string(&recipe)?.as_str())?;
let recipe_de = serde_yaml::from_str::<Recipe>(fs::read_to_string(recipe)?.as_str())?;
let mut context = Context::from_serialize(recipe_de)?;
context.insert("recipe", &recipe);