Fix clippy compile error

This commit is contained in:
2022-08-29 22:59:19 -07:00
parent 9564c70a33
commit bac49bc766

View File

@@ -23,7 +23,7 @@ struct AppData {
pub among_us_path: Rc<RefCell<String>>,
}
static AMONG_US_APPID: &'static str = "945360";
static AMONG_US_APPID: &str = "945360";
fn attempt_run_among_us(install_path: &Path) {
let executable_path: PathBuf = [install_path.to_str().unwrap(), "Among Us.exe"]
@@ -320,8 +320,7 @@ async fn main() {
let auv = ver_smash_split.next().unwrap();
let button_string: String = format!("Town of Us {}", ver_smash_split.next().unwrap());
let mut index = 0;
for j in &auv_array {
for (index, j) in auv_array.iter().enumerate() {
if j == auv {
let mut clone = installs_path.clone();
clone.push(existing_ver_smash.clone());
@@ -339,7 +338,6 @@ async fn main() {
println!("{}", existing_ver_smash.clone().to_str().unwrap());
}
index += 1;
}
}
for i in flexbox_array {