mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 00:55:28 +00:00
add Default implementation
This commit is contained in:
parent
96f81addcb
commit
1d5fa4febb
3 changed files with 18 additions and 0 deletions
|
|
@ -24,6 +24,12 @@ pub struct Profile {
|
|||
pub config_path: PathBuf,
|
||||
}
|
||||
|
||||
impl Default for Profile {
|
||||
fn default() -> Self {
|
||||
Self::new()
|
||||
}
|
||||
}
|
||||
|
||||
impl Profile {
|
||||
// Constructors
|
||||
|
||||
|
|
|
|||
|
|
@ -11,6 +11,12 @@ pub struct Memory {
|
|||
index: RefCell<HashMap<String, i64>>,
|
||||
}
|
||||
|
||||
impl Default for Memory {
|
||||
fn default() -> Self {
|
||||
Self::new()
|
||||
}
|
||||
}
|
||||
|
||||
impl Memory {
|
||||
// Constructors
|
||||
|
||||
|
|
|
|||
|
|
@ -8,6 +8,12 @@ pub struct Memory {
|
|||
index: RefCell<HashMap<i64, String>>,
|
||||
}
|
||||
|
||||
impl Default for Memory {
|
||||
fn default() -> Self {
|
||||
Self::new()
|
||||
}
|
||||
}
|
||||
|
||||
impl Memory {
|
||||
// Constructors
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue