mirror of
https://github.com/Drop-OSS/drop-app.git
synced 2025-11-14 00:31:33 +10:00
Ran cargo clippy and cargo fmt
Signed-off-by: quexeky <git@quexeky.dev>
This commit is contained in:
@ -110,11 +110,11 @@ pub async fn stop_specific_game_download(
|
||||
#[tauri::command]
|
||||
pub async fn get_game_download_progress(
|
||||
state: tauri::State<'_, Mutex<AppState>>,
|
||||
game_id: String
|
||||
game_id: String,
|
||||
) -> Result<f64, String> {
|
||||
let lock = state.lock().unwrap();
|
||||
let download_agent = lock.game_downloads.get(&game_id).unwrap();
|
||||
let progress = download_agent.progress.get_progress_percentage();
|
||||
info!("{}", progress);
|
||||
return Ok(progress)
|
||||
}
|
||||
Ok(progress)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user