mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-01-15 09:10:08 +00:00
add Default implementation
This commit is contained in:
parent
96f81addcb
commit
1d5fa4febb
@ -24,6 +24,12 @@ pub struct Profile {
|
|||||||
pub config_path: PathBuf,
|
pub config_path: PathBuf,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl Default for Profile {
|
||||||
|
fn default() -> Self {
|
||||||
|
Self::new()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
impl Profile {
|
impl Profile {
|
||||||
// Constructors
|
// Constructors
|
||||||
|
|
||||||
|
@ -11,6 +11,12 @@ pub struct Memory {
|
|||||||
index: RefCell<HashMap<String, i64>>,
|
index: RefCell<HashMap<String, i64>>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl Default for Memory {
|
||||||
|
fn default() -> Self {
|
||||||
|
Self::new()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
impl Memory {
|
impl Memory {
|
||||||
// Constructors
|
// Constructors
|
||||||
|
|
||||||
|
@ -8,6 +8,12 @@ pub struct Memory {
|
|||||||
index: RefCell<HashMap<i64, String>>,
|
index: RefCell<HashMap<i64, String>>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl Default for Memory {
|
||||||
|
fn default() -> Self {
|
||||||
|
Self::new()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
impl Memory {
|
impl Memory {
|
||||||
// Constructors
|
// Constructors
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user