style: 🎨 Fix nigthly clippy warnings

This commit is contained in:
Sergio Gasquez 2022-09-17 08:52:12 +02:00
parent cdccc53d72
commit b94747d126
2 changed files with 5 additions and 5 deletions

View File

@ -263,10 +263,10 @@ fn install(args: InstallOpts) -> Result<()> {
for target in targets {
if espidf_targets.is_empty() {
espidf_targets =
espidf_targets + &target.to_string().to_lowercase().replace("-", "");
espidf_targets + &target.to_string().to_lowercase().replace('-', "");
} else {
espidf_targets =
espidf_targets + "," + &target.to_string().to_lowercase().replace("-", "");
espidf_targets + "," + &target.to_string().to_lowercase().replace('-', "");
}
}
install_espidf(&espidf_targets, &espidf_version)?;
@ -280,7 +280,7 @@ fn install(args: InstallOpts) -> Result<()> {
));
// TODO: Install ldproxy
install_extra_crate("ldproxy");
} else {
println!("No esp-idf version provided. Installing gcc for targets");
exports.extend(install_gcc_targets(targets)?.iter().cloned());

View File

@ -214,7 +214,7 @@ pub fn run_command(
arguments: Vec<String>,
command: String,
) -> std::result::Result<(), clap::Error> {
let mut arguments = arguments.clone();
let mut arguments = arguments;
// Unix - pass command as parameter for initializer
if !command.is_empty() {
arguments.push(command);
@ -323,7 +323,7 @@ async fn fetch_url(url: String, output: String) -> Result<(), String> {
pub fn print_arguments(args: &InstallOpts, arch: &str, targets: &Vec<Chip>, llvm_version: &str) {
println!(
"{} Installing esp-rs for {} with:
"{} Installing esp-rs for {} with:
- Build targets: {:?}
- Cargo home: {:?}
- Clear cache: {:?}