From 33d361d43a8b757354b345a01ffbc227a163e9bb Mon Sep 17 00:00:00 2001 From: kivimango <balazsviktor23@gmail.com> Date: Wed, 16 Aug 2023 12:17:43 +0200 Subject: [PATCH] Fix compiler warnings for unused variables --- src/bin/cook.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bin/cook.rs b/src/bin/cook.rs index 6b00832e5..f93dac903 100644 --- a/src/bin/cook.rs +++ b/src/bin/cook.rs @@ -204,7 +204,7 @@ fn fetch(recipe_dir: &Path, source: &Option<SourceRecipe>) -> Result<PathBuf, St run_command(command)?; } - if let Some(upstream) = upstream { + if let Some(_upstream) = upstream { //TODO: set upstream URL // git remote set-url upstream "$GIT_UPSTREAM" &> /dev/null || // git remote add upstream "$GIT_UPSTREAM" @@ -593,7 +593,7 @@ done Ok(stage_dir) } -fn package(recipe_dir: &Path, stage_dir: &Path, target_dir: &Path, package: &PackageRecipe) -> Result<PathBuf, String> { +fn package(_recipe_dir: &Path, stage_dir: &Path, target_dir: &Path, _package: &PackageRecipe) -> Result<PathBuf, String> { //TODO: metadata like dependencies, name, and version let secret_path = "build/id_ed25519.toml"; @@ -659,7 +659,7 @@ fn cook(recipe_dir: &Path, recipe: &Recipe, fetch_only: bool) -> Result<(), Stri err ))?; - let package_file = package(&recipe_dir, &stage_dir, &target_dir, &recipe.package).map_err(|err| format!( + let _package_file = package(&recipe_dir, &stage_dir, &target_dir, &recipe.package).map_err(|err| format!( "failed to package: {}", err ))?; -- GitLab