From 422f6df5d8be18b4c2609cee765451c2c345951f Mon Sep 17 00:00:00 2001 From: Till Wegmueller Date: Fri, 2 Sep 2022 23:50:43 +0200 Subject: [PATCH] Suppress warnings --- ports/src/main.rs | 2 +- ports/src/workspace.rs | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ports/src/main.rs b/ports/src/main.rs index 044e50f..760b0ec 100644 --- a/ports/src/main.rs +++ b/ports/src/main.rs @@ -69,7 +69,7 @@ fn main() -> Result<()> { fn run_package_command>(spec_file: P, _target: P) -> Result<()> { let content_string = fs::read_to_string(spec_file)?; let spec = parse(content_string)?; - let mut ws = Workspace::new("")?; + let ws = Workspace::new("")?; let downloaded = ws.get_sources(spec.sources)?; ws.unpack_all_sources(downloaded)?; diff --git a/ports/src/workspace.rs b/ports/src/workspace.rs index f18d5e5..8fdb001 100644 --- a/ports/src/workspace.rs +++ b/ports/src/workspace.rs @@ -90,14 +90,17 @@ impl Workspace { Ok(ws) } + #[allow(dead_code)] pub fn expand_source_path(&self, fname: &str) -> PathBuf { self.source_dir.join(fname) } + #[allow(dead_code)] pub fn get_proto_dir(&self) -> PathBuf { self.proto_dir.clone() } + #[allow(dead_code)] pub fn get_build_dir(&self) -> PathBuf { self.build_dir.clone() }