diff --git a/src/profile.rs b/src/profile.rs index 0d4a7b20..c53ab5ea 100644 --- a/src/profile.rs +++ b/src/profile.rs @@ -24,6 +24,12 @@ pub struct Profile { pub config_path: PathBuf, } +impl Default for Profile { + fn default() -> Self { + Self::new() + } +} + impl Profile { // Constructors diff --git a/src/profile/identity/gemini/auth/memory.rs b/src/profile/identity/gemini/auth/memory.rs index 8a18b4aa..e8b434bc 100644 --- a/src/profile/identity/gemini/auth/memory.rs +++ b/src/profile/identity/gemini/auth/memory.rs @@ -11,6 +11,12 @@ pub struct Memory { index: RefCell>, } +impl Default for Memory { + fn default() -> Self { + Self::new() + } +} + impl Memory { // Constructors diff --git a/src/profile/identity/gemini/memory.rs b/src/profile/identity/gemini/memory.rs index f51455b3..e0f9ec81 100644 --- a/src/profile/identity/gemini/memory.rs +++ b/src/profile/identity/gemini/memory.rs @@ -8,6 +8,12 @@ pub struct Memory { index: RefCell>, } +impl Default for Memory { + fn default() -> Self { + Self::new() + } +} + impl Memory { // Constructors