refactor: Ran cargo clippy & fmt

Signed-off-by: quexeky <git@quexeky.dev>
This commit is contained in:
quexeky
2025-01-05 20:29:15 +11:00
parent 8aad64ffa7
commit 82804ebc67
31 changed files with 380 additions and 284 deletions

View File

@ -1,3 +1 @@
pub struct CompatibilityLayer {
}
pub struct CompatibilityLayer {}

View File

@ -1,4 +1,4 @@
mod compatibility_layer;
mod prefix;
mod registry;
mod tool;
mod compatibility_layer;

View File

@ -0,0 +1 @@

View File

@ -3,5 +3,5 @@ use std::collections::HashMap;
use crate::download_manager::downloadable::Downloadable;
pub struct Registry<T: Downloadable> {
tools: HashMap<String, T>
tools: HashMap<String, T>,
}

View File

@ -2,7 +2,11 @@ use std::sync::Arc;
use tauri::AppHandle;
use crate::download_manager::{application_download_error::ApplicationDownloadError, download_thread_control_flag::DownloadThreadControl, downloadable::Downloadable, downloadable_metadata::DownloadableMetadata, progress_object::ProgressObject};
use crate::download_manager::{
application_download_error::ApplicationDownloadError,
download_thread_control_flag::DownloadThreadControl, downloadable::Downloadable,
downloadable_metadata::DownloadableMetadata, progress_object::ProgressObject,
};
pub struct ToolDownloadAgent {
id: String,
@ -36,7 +40,11 @@ impl Downloadable for ToolDownloadAgent {
todo!()
}
fn on_error(&self, app_handle: &tauri::AppHandle, error: crate::download_manager::application_download_error::ApplicationDownloadError) {
fn on_error(
&self,
app_handle: &tauri::AppHandle,
error: crate::download_manager::application_download_error::ApplicationDownloadError,
) {
todo!()
}
@ -51,4 +59,4 @@ impl Downloadable for ToolDownloadAgent {
fn on_cancelled(&self, app_handle: &tauri::AppHandle) {
todo!()
}
}
}