From 4d8883218cd5fb81f82046e6efe45dd4afd29ff2 Mon Sep 17 00:00:00 2001 From: Tipragot Date: Sat, 18 Nov 2023 23:47:59 +0100 Subject: [PATCH] =?UTF-8?q?Suppression=20du=20code=20non=20utilis=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Cargo.toml | 2 +- src/main.rs | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index be07316..17c10bc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,7 +6,7 @@ build = "build.rs" [dependencies] reqwest = { version = "0.11.22", features = ["blocking"] } -winapi = { version = "0.3", features = ["wincon", "winuser"] } +winapi = { version = "0.3", features = ["wincon"] } anyhow = "1.0.75" glob = "0.3.1" zip = "0.6.6" diff --git a/src/main.rs b/src/main.rs index 854803e..2f2f214 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,12 +1,10 @@ use anyhow::Context; use launcher::{apply_zip, download}; use std::env; -use std::io::{BufRead, BufReader, Read, Write}; +use std::io::{BufRead, BufReader, Write}; use std::os::windows::process::CommandExt; use std::path::Path; use std::process::Stdio; -use std::thread; -use std::time::Duration; use std::{env::set_current_dir, fs, io, process::Command}; use winapi::um::winbase::DETACHED_PROCESS;