mirror of
https://github.com/YGGverse/hlstate-rs.git
synced 2026-03-31 17:15:37 +00:00
reorder entries by the priority, minor string build optimization
This commit is contained in:
parent
a31aabf309
commit
e9a528f252
1 changed files with 3 additions and 5 deletions
|
|
@ -48,11 +48,9 @@ impl Feed {
|
|||
time.timestamp() // must be unique as the event
|
||||
));
|
||||
|
||||
self.0.push_str("<description>");
|
||||
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("</description>");
|
||||
self.0.push_str(&format!(
|
||||
"<description>online: {online}\nmap: {map}\nconnect: {a}\n</description>"
|
||||
));
|
||||
|
||||
self.0.push_str("<pubDate>");
|
||||
self.0.push_str(&time.to_rfc2822());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue