From e9a528f252d1f7b710fec28dcd84df2bd4a63531 Mon Sep 17 00:00:00 2001 From: yggverse Date: Fri, 27 Mar 2026 06:57:24 +0200 Subject: [PATCH] reorder entries by the priority, minor string build optimization --- crates/httpd/src/feed.rs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/crates/httpd/src/feed.rs b/crates/httpd/src/feed.rs index 661da02..c3399d8 100644 --- a/crates/httpd/src/feed.rs +++ b/crates/httpd/src/feed.rs @@ -48,11 +48,9 @@ impl Feed { time.timestamp() // must be unique as the event )); - self.0.push_str(""); - self.0.push_str(&format!("connect: {a}\n")); - self.0.push_str(&format!("map: {map}\n")); - self.0.push_str(&format!("online: {online}\n")); - self.0.push_str(""); + self.0.push_str(&format!( + "online: {online}\nmap: {map}\nconnect: {a}\n" + )); self.0.push_str(""); self.0.push_str(&time.to_rfc2822());