summaryrefslogtreecommitdiff
path: root/client/src/chat.rs
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2025-02-25 21:57:49 +0100
committermetamuffin <metamuffin@disroot.org>2025-02-25 21:57:49 +0100
commitb51a9ef2d091dfac4833100e9835471e365168e1 (patch)
tree6855f9f2c7116cd3fc4ecd1774f3a2f42157c1c2 /client/src/chat.rs
parent6df8b23ffc7ff248dc9fe5d3d8c4ee60abbab022 (diff)
downloadweareserver-b51a9ef2d091dfac4833100e9835471e365168e1.tar
weareserver-b51a9ef2d091dfac4833100e9835471e365168e1.tar.bz2
weareserver-b51a9ef2d091dfac4833100e9835471e365168e1.tar.zst
clippy
Diffstat (limited to 'client/src/chat.rs')
-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 {