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: implement Default trait for AuthRegistry

Tonho458a0e30e10d
diff --git a/src-tauri/src/core/auth.rs b/src-tauri/src/core/auth.rs
index 93d9e9d0..82d8825a 100644
--- a/src-tauri/src/core/auth.rs
+++ b/src-tauri/src/core/auth.rs
@@ -545,6 +545,12 @@ pub struct AuthRegistry {
providers: Vec<Arc<dyn PlatformAuth>>,
}
+impl Default for AuthRegistry {
+ fn default() -> Self {
+ Self::new()
+ }
+}
+
impl AuthRegistry {
pub fn new() -> Self {
Self {