aboutsummaryrefslogtreecommitdiff
path: root/crates/whirl_server/src/distributor.rs
diff options
context:
space:
mode:
authorFuwn <[email protected]>2021-05-27 12:09:18 +0000
committerFuwn <[email protected]>2021-05-27 12:09:18 +0000
commita82a69c53f064fbeb4715db4ce7e973991bab4b7 (patch)
treecbe691e7dc46d82315a7bece38a92ee3deb838f7 /crates/whirl_server/src/distributor.rs
parentstyle(cli): remove unneeded else branch (diff)
downloadwhirl-a82a69c53f064fbeb4715db4ce7e973991bab4b7.tar.xz
whirl-a82a69c53f064fbeb4715db4ce7e973991bab4b7.zip
fix(server): create method no longer moves self, but takes reference
Diffstat (limited to 'crates/whirl_server/src/distributor.rs')
-rw-r--r--crates/whirl_server/src/distributor.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/whirl_server/src/distributor.rs b/crates/whirl_server/src/distributor.rs
index 3aae901..a22316e 100644
--- a/crates/whirl_server/src/distributor.rs
+++ b/crates/whirl_server/src/distributor.rs
@@ -98,7 +98,7 @@ impl Server for Distributor {
BUDDYLISTUPDATE => {
let buddy = BuddyList::parse(msg.to_vec());
debug!("received buddy list update from {}: {}", username, buddy.buddy);
- peer.bytes.get_mut().write_all(&buddy.clone().create()).await?;
+ peer.bytes.get_mut().write_all(&buddy.create()).await?;
trace!("sent buddy list notify to {}: {}", username, buddy.buddy);
}
ROOMIDRQ => {