mirror of
https://codeberg.org/Toasterson/ips.git
synced 2026-04-10 21:30:41 +00:00
Suppress warnings
This commit is contained in:
parent
4ebecbd153
commit
422f6df5d8
2 changed files with 4 additions and 1 deletions
|
|
@ -69,7 +69,7 @@ fn main() -> Result<()> {
|
||||||
fn run_package_command<P: AsRef<Path>>(spec_file: P, _target: P) -> Result<()> {
|
fn run_package_command<P: AsRef<Path>>(spec_file: P, _target: P) -> Result<()> {
|
||||||
let content_string = fs::read_to_string(spec_file)?;
|
let content_string = fs::read_to_string(spec_file)?;
|
||||||
let spec = parse(content_string)?;
|
let spec = parse(content_string)?;
|
||||||
let mut ws = Workspace::new("")?;
|
let ws = Workspace::new("")?;
|
||||||
let downloaded = ws.get_sources(spec.sources)?;
|
let downloaded = ws.get_sources(spec.sources)?;
|
||||||
ws.unpack_all_sources(downloaded)?;
|
ws.unpack_all_sources(downloaded)?;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -90,14 +90,17 @@ impl Workspace {
|
||||||
Ok(ws)
|
Ok(ws)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(dead_code)]
|
||||||
pub fn expand_source_path(&self, fname: &str) -> PathBuf {
|
pub fn expand_source_path(&self, fname: &str) -> PathBuf {
|
||||||
self.source_dir.join(fname)
|
self.source_dir.join(fname)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(dead_code)]
|
||||||
pub fn get_proto_dir(&self) -> PathBuf {
|
pub fn get_proto_dir(&self) -> PathBuf {
|
||||||
self.proto_dir.clone()
|
self.proto_dir.clone()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(dead_code)]
|
||||||
pub fn get_build_dir(&self) -> PathBuf {
|
pub fn get_build_dir(&self) -> PathBuf {
|
||||||
self.build_dir.clone()
|
self.build_dir.clone()
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue