mirror of
https://github.com/YGGverse/ggemini.git
synced 2026-04-01 09:35:33 +00:00
add default implementation
This commit is contained in:
parent
c3a76472d2
commit
7db362aadc
2 changed files with 12 additions and 0 deletions
|
|
@ -7,6 +7,12 @@ pub struct Session {
|
|||
index: RefCell<HashMap<String, Rc<Connection>>>,
|
||||
}
|
||||
|
||||
impl Default for Session {
|
||||
fn default() -> Self {
|
||||
Self::new()
|
||||
}
|
||||
}
|
||||
|
||||
impl Session {
|
||||
pub fn new() -> Self {
|
||||
Self {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue