mirror of
https://github.com/YGGverse/ggemini.git
synced 2026-03-31 17:15:31 +00:00
add default implementation
This commit is contained in:
parent
c3a76472d2
commit
7db362aadc
2 changed files with 12 additions and 0 deletions
|
|
@ -27,6 +27,12 @@ pub struct Client {
|
|||
pub socket: SocketClient,
|
||||
}
|
||||
|
||||
impl Default for Client {
|
||||
fn default() -> Self {
|
||||
Self::new()
|
||||
}
|
||||
}
|
||||
|
||||
impl Client {
|
||||
// Constructors
|
||||
|
||||
|
|
|
|||
|
|
@ -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