From 1d5fa4febbb1340f3350413900bebb87cf8d3e9a Mon Sep 17 00:00:00 2001 From: yggverse Date: Fri, 6 Dec 2024 23:31:52 +0200 Subject: [PATCH] add Default implementation --- src/profile.rs | 6 ++++++ src/profile/identity/gemini/auth/memory.rs | 6 ++++++ src/profile/identity/gemini/memory.rs | 6 ++++++ 3 files changed, 18 insertions(+) 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