remove warning

This commit is contained in:
ALEZ-DEV 2024-07-17 21:17:52 +02:00
parent f87289be54
commit 245e042560
2 changed files with 3 additions and 4 deletions

View File

@ -79,7 +79,7 @@ impl GameComponent {
match v {
Some(str) => {
if str == "done" {
if let Ok(size) = current_size {
if let Ok(_size) = current_size {
progress.done();
}
break;

View File

@ -1,6 +1,5 @@
use std::{path::PathBuf, sync::Arc, process::{Command, Stdio}, io::{BufReader, BufRead}};
use dirs::config_dir;
use downloader::progress::Reporter;
use log::{debug, info};
use tokio::fs::create_dir_all;
@ -12,7 +11,7 @@ use crate::{
game_component::GameComponent, proton_component::ProtonComponent,
},
game_patcher,
game_state::{GameConfig, GameState},
game_state::GameState,
utils::{get_game_name, get_game_name_with_executable, github_requester::GithubRequester},
};
@ -175,7 +174,7 @@ impl GameManager {
let mut child = if let Some(custom_command) = options {
debug!("Starting game with --options -> {}", custom_command);
let mut tokens: Vec<&str> = custom_command.split_whitespace().collect();
let tokens: Vec<&str> = custom_command.split_whitespace().collect();
// position of the %command%
let index = tokens.iter().position(|&s| s == "%command%").expect("You forget to put %command% in your custom launch command");