rust/hedgewars-server/src/handlers/inlobby.rs
changeset 15526 24f692e791d3
parent 15482 4cc9ec732392
child 15533 0606f89698e7
equal deleted inserted replaced
15525:16d3c9acd715 15526:24f692e791d3
   101                 html.push("<table>".to_string());
   101                 html.push("<table>".to_string());
   102                 for protocol in protocols {
   102                 for protocol in protocols {
   103                     html.push(format!(
   103                     html.push(format!(
   104                         "<tr><td>{}</td><td>{}</td><td>{}</td></tr>",
   104                         "<tr><td>{}</td><td>{}</td><td>{}</td></tr>",
   105                         super::utils::protocol_version_string(protocol),
   105                         super::utils::protocol_version_string(protocol),
   106                         server.protocol_clients(protocol).count(),
   106                         server.protocol_client_ids(protocol).count(),
   107                         server.protocol_rooms(protocol).count()
   107                         server.protocol_room_ids(protocol).count()
   108                     ));
   108                     ));
   109                 }
   109                 }
   110                 html.push("</table>".to_string());
   110                 html.push("</table>".to_string());
   111 
   111 
   112                 response.add(Warning(html.join("")).send_self());
   112                 response.add(Warning(html.join("")).send_self());