Skip to content

Commit

Permalink
style: address clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
mellowcroc committed Oct 28, 2024
1 parent c881c88 commit 9ca8a81
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use once_cell::sync::Lazy;
use serde::{Deserialize, Serialize};
use std::collections::HashMap;
use std::env::consts::{ARCH, OS};
use std::fs::{metadata, remove_dir_all, remove_file, set_permissions};
use std::fs::{metadata, remove_dir_all, set_permissions};
use std::os::unix::fs::PermissionsExt;
use std::path::Path;
use thiserror::Error;
Expand Down Expand Up @@ -260,7 +260,7 @@ fn download_corelib_repo(config: &Config, tmp_dir_path: &Path) {
let url = "https://github.com/starkware-libs/cairo/releases/download/v2.9.0-dev.0/release-x86_64-unknown-linux-musl.tar.gz";
let tmp_download_file_path = tmp_dir_path.join("release-x86_64-unknown-linux-musl.tar.gz");
download_from_url(url, &tmp_download_file_path);
unzip_file(&tmp_download_file_path, &tmp_dir_path);
unzip_file(&tmp_download_file_path, tmp_dir_path);

if !std::process::Command::new("cp")
.args([
Expand All @@ -287,7 +287,7 @@ fn download_corelib_repo(config: &Config, tmp_dir_path: &Path) {
}

// clean up temporary directory
remove_dir_all(&tmp_dir_path).expect("Failed to remove temporary directory");
remove_dir_all(tmp_dir_path).expect("Failed to remove temporary directory");
}

fn unzip_file(download_file_path: &Path, download_dir: &Path) {
Expand Down

0 comments on commit 9ca8a81

Please sign in to comment.