mirror of
https://github.com/Drop-OSS/drop-app.git
synced 2025-11-15 01:01:25 +10:00
refactor: Ran cargo clippy & fmt
Signed-off-by: quexeky <git@quexeky.dev>
This commit is contained in:
@ -1,3 +1 @@
|
||||
pub struct CompatibilityLayer {
|
||||
|
||||
}
|
||||
pub struct CompatibilityLayer {}
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
mod compatibility_layer;
|
||||
mod prefix;
|
||||
mod registry;
|
||||
mod tool;
|
||||
mod compatibility_layer;
|
||||
@ -0,0 +1 @@
|
||||
|
||||
|
||||
@ -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>,
|
||||
}
|
||||
|
||||
@ -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!()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user