Fix clippy warnings

This commit is contained in:
Elnu 2023-04-14 13:24:21 -07:00
parent 4e9784baf4
commit 8427eb082b
3 changed files with 9 additions and 14 deletions

View file

@ -13,6 +13,6 @@ pub use word::*;
fn main() {
const PORT: u16 = 8080;
let mut server = Server::new(PORT)
.expect(&format!("Failed to start server at port {PORT}"));
.unwrap_or_else(|_| panic!("Failed to start server at port {PORT}"));
server.run();
}