refactor(downloads): Convert DOWNLOAD_MAX_THREADS to const

Signed-off-by: quexeky <git@quexeky.dev>
This commit is contained in:
quexeky 2024-11-11 07:58:49 +11:00
parent 04368ff549
commit 4fc13a1c8f
No known key found for this signature in database
GPG key ID: B890B788CC5BD437

View file

@ -53,7 +53,7 @@ impl Display for GameDownloadError {
}
}
static DOWNLOAD_MAX_THREADS: usize = 4;
pub const DOWNLOAD_MAX_THREADS: usize = 4;
pub struct ProgressObject {
pub max: u64,