chore(download manager): Some easy cleanup of the download manager

Signed-off-by: quexeky <git@quexeky.dev>
This commit is contained in:
quexeky
2024-12-31 12:16:57 +11:00
parent aed58e49bc
commit 0a2ac25b1c
3 changed files with 4 additions and 6 deletions
@@ -12,7 +12,7 @@ use std::{
use log::info;
use serde::Serialize;
use crate::downloads::download_agent::{GameDownloadAgent};
use crate::downloads::download_agent::GameDownloadAgent;
use super::{application_download_error::ApplicationDownloadError, download_manager_builder::{CurrentProgressObject, DownloadableQueueStandin}, downloadable::Downloadable, queue::Queue};
@@ -249,7 +249,7 @@ impl DownloadManagerBuilder {
return;
}
let previous_state = previous_state.unwrap();
if let Some((version_name, install_dir)) = match previous_state {
if let Some((_version_name, install_dir)) = match previous_state {
ApplicationStatus::Installed {
version_name,
install_dir,