Warning cleanup

This commit is contained in:
Sergio Gasquez 2022-08-12 07:44:37 +00:00
parent 582df61e2c
commit 889c4b839c
3 changed files with 6 additions and 6 deletions

View File

@ -123,7 +123,7 @@ fn install(args: InstallOpts) -> Result<()> {
let llvm_version = parse_llvm_version(&args.llvm_version).unwrap();
println!("llvm_version: {:?}", llvm_version);
let llvm_release = args.llvm_version.clone();
// let llvm_release = args.llvm_version.clone();
let artifact_file_extension = get_artifact_file_extension(arch).to_string();
let llvm_arch = get_llvm_arch(arch).to_string();
let llvm_file = format!(

View File

@ -280,7 +280,7 @@ pub fn install_espidf(targets: &str, version: String) -> Result<(), String> {
println!("Installing CMake");
let mut arguments: Vec<String> = [].to_vec();
let mut idf_tools_scritp_path = format!("{}/tools/idf_tools.py", espidf_path);
let idf_tools_scritp_path = format!("{}/tools/idf_tools.py", espidf_path);
arguments.push(idf_tools_scritp_path);
arguments.push("install".to_string());
arguments.push("cmake".to_string());

View File

@ -25,7 +25,7 @@ pub fn parse_targets(build_target: &str) -> Result<Vec<Chip>, String> {
chips.push(Chip::Esp32c3);
return Ok(chips);
}
let mut targets: Vec<&str>;
let targets: Vec<&str>;
if build_target.contains(' ') || build_target.contains(',') {
targets = build_target.split([',', ' ']).collect();
} else {
@ -199,7 +199,7 @@ pub fn run_command(shell: String, arguments: Vec<String>, command: String) -> st
}
//println!("arguments = {:?}", arguments);
let mut child_process = std::process::Command::new(shell)
std::process::Command::new(shell)
.args(arguments)
.stdin(Stdio::piped())
.stdout(Stdio::piped())
@ -208,8 +208,8 @@ pub fn run_command(shell: String, arguments: Vec<String>, command: String) -> st
{
}
let output = child_process.wait_with_output()?;
//println!("output = {:?}", output);
// let output = child_process.wait_with_output()?;
// println!("output = {:?}", output);
Ok(())
}