aboutsummaryrefslogtreecommitdiff
path: root/crates/whirl_server/src/interaction/shared.rs
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-06-03 15:37:20 +0000
committerFuwn <[email protected]>2024-06-03 15:37:20 +0000
commit967774fc048b9d0738fbd13998ed77b6b70effa2 (patch)
treee0f9d650a221476852005eeaac96224584a3a76a /crates/whirl_server/src/interaction/shared.rs
parentformat: rustfmt with new rules (diff)
downloadwhirl-967774fc048b9d0738fbd13998ed77b6b70effa2.tar.xz
whirl-967774fc048b9d0738fbd13998ed77b6b70effa2.zip
refactor(crates): update idioms
Diffstat (limited to 'crates/whirl_server/src/interaction/shared.rs')
-rw-r--r--crates/whirl_server/src/interaction/shared.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/crates/whirl_server/src/interaction/shared.rs b/crates/whirl_server/src/interaction/shared.rs
index fc8674e..4e1d158 100644
--- a/crates/whirl_server/src/interaction/shared.rs
+++ b/crates/whirl_server/src/interaction/shared.rs
@@ -9,6 +9,7 @@ pub struct Shared {
impl Shared {
pub fn new() -> Self { Self { peers: HashMap::new() } }
+ #[allow(clippy::unused_async)]
pub async fn broadcast(&mut self, message: &[u8]) {
for peer in &mut self.peers {
peer.1.send(BytesMut::from(message)).unwrap();