add Default implementation

This commit is contained in:
yggverse 2024-12-06 23:31:52 +02:00
parent 96f81addcb
commit 1d5fa4febb
3 changed files with 18 additions and 0 deletions

View File

@ -24,6 +24,12 @@ pub struct Profile {
pub config_path: PathBuf,
}
impl Default for Profile {
fn default() -> Self {
Self::new()
}
}
impl Profile {
// Constructors

View File

@ -11,6 +11,12 @@ pub struct Memory {
index: RefCell<HashMap<String, i64>>,
}
impl Default for Memory {
fn default() -> Self {
Self::new()
}
}
impl Memory {
// Constructors

View File

@ -8,6 +8,12 @@ pub struct Memory {
index: RefCell<HashMap<i64, String>>,
}
impl Default for Memory {
fn default() -> Self {
Self::new()
}
}
impl Memory {
// Constructors