Clippy changes

This commit is contained in:
quexeky
2024-10-24 09:41:04 +11:00
parent f60ca2bd6c
commit 553bc379f0
4 changed files with 3 additions and 13 deletions

View File

@ -7,9 +7,5 @@ When downloading any game, the following details must be provided to the server:
The steps to then download a game are as follows: The steps to then download a game are as follows:
1. User requests 1. User requests
*/ */
use tauri::AppHandle;
use crate::auth::generate_authorization_header;
use crate::DB;
use crate::db::DatabaseImpls;

View File

@ -1,10 +1,7 @@
use std::future::Future;
use std::str::FromStr;
use std::sync::{Arc, Mutex}; use std::sync::{Arc, Mutex};
use std::sync::atomic::AtomicUsize; use std::sync::atomic::AtomicUsize;
use log::info; use log::info;
use serde::{Deserialize, Serialize}; use serde::{Deserialize, Serialize};
use versions::Version;
use crate::{AppState, DB}; use crate::{AppState, DB};
use crate::auth::generate_authorization_header; use crate::auth::generate_authorization_header;
use crate::db::DatabaseImpls; use crate::db::DatabaseImpls;
@ -87,7 +84,7 @@ impl GameDownload {
format!( format!(
"/api/v1/client/metadata/manifest?id={}&version={}", "/api/v1/client/metadata/manifest?id={}&version={}",
self.id, self.id,
self.version.to_string() self.version
) )
.as_str() .as_str()
) )
@ -153,7 +150,7 @@ pub async fn start_game_download(
) -> Result<(), GameDownloadError> { ) -> Result<(), GameDownloadError> {
info!("Triggered Game Download"); info!("Triggered Game Download");
let mut download = Arc::new(GameDownload::new(game_id, game_version.clone())); let download = Arc::new(GameDownload::new(game_id, game_version.clone()));
download.ensure_manifest_exists().await?; download.ensure_manifest_exists().await?;

View File

@ -22,7 +22,7 @@ use std::{
use std::sync::Arc; use std::sync::Arc;
use tauri_plugin_deep_link::DeepLinkExt; use tauri_plugin_deep_link::DeepLinkExt;
use crate::db::DatabaseImpls; use crate::db::DatabaseImpls;
use crate::downloads::game_download::{start_game_download, GameDownload}; use crate::downloads::game_download::GameDownload;
#[derive(Clone, Copy, Serialize)] #[derive(Clone, Copy, Serialize)]
pub enum AppStatus { pub enum AppStatus {

View File

@ -1,6 +1,3 @@
use std::sync::atomic::{AtomicUsize, Ordering};
use std::sync::atomic::Ordering::Relaxed;
use rayon::{ThreadPool, ThreadPoolBuilder};
/* /*