Skip to content

Commit 2d249c5

Browse files
committed
cargo fmt
1 parent 7b1b427 commit 2d249c5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pumpkin/src/server/mod.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,9 @@ impl Server {
130130

131131
/// Sends a message to all players in every world
132132
pub fn broadcast_message(&self, content: &TextComponent) {
133-
for world in &self.worlds {
134-
world.broadcast_message(content);
135-
}
133+
self.worlds
134+
.iter()
135+
.for_each(|w| w.broadcast_message(content));
136136
}
137137

138138
/// Get all online player names

0 commit comments

Comments
 (0)