Skip to content

Open-source download manager & offline media toolbox for YouTube, music, social media, learning platforms & 1,800+ sites. Built with Tauri 2.0, Rust & Svelte.

fix: change command parameter type to String in handle_command method

Tonho16be9e373a70
diff --git a/src-tauri/omniget-plugin-sdk/src/plugin.rs b/src-tauri/omniget-plugin-sdk/src/plugin.rs
index 0213080f..95885cc9 100644
--- a/src-tauri/omniget-plugin-sdk/src/plugin.rs
+++ b/src-tauri/omniget-plugin-sdk/src/plugin.rs
@@ -11,9 +11,9 @@ pub trait OmnigetPlugin: Send + Sync {
fn handle_command(
&self,
- command: &str,
+ command: String,
args: serde_json::Value,
- ) -> std::pin::Pin<Box<dyn std::future::Future<Output = Result<serde_json::Value, String>> + Send + '_>>;
+ ) -> std::pin::Pin<Box<dyn std::future::Future<Output = Result<serde_json::Value, String>> + Send + 'static>>;
fn commands(&self) -> Vec<String>;
}