summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
Diffstat (limited to 'client')
-rw-r--r--client/src/chat.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/client/src/chat.rs b/client/src/chat.rs
index e5580f5..d60c118 100644
--- a/client/src/chat.rs
+++ b/client/src/chat.rs
@@ -22,6 +22,12 @@ pub struct Chat {
pub send_queue: VecDeque<String>,
pub history: VecDeque<String>,
}
+impl Default for Chat {
+ fn default() -> Self {
+ Self::new()
+ }
+}
+
impl Chat {
pub fn new() -> Self {
Self {