no mutable refs in http server

This commit is contained in:
MeexReay 2024-08-29 06:00:53 +03:00
parent 1ae9a50c8b
commit 8be5a692a7
5 changed files with 31 additions and 48 deletions

View file

@ -31,11 +31,11 @@ impl HttpServer for EzSite {
}
}
async fn on_start(&mut self, _: &str) {
async fn on_start(&self, _: &str) {
// println!("Http server started on {}", host);
}
async fn on_close(&mut self) {
async fn on_close(&self) {
// println!("Http server closed");
}
}

View file

@ -54,11 +54,11 @@ impl HttpServer for EzSite {
}
}
async fn on_start(&mut self, host: &str) {
async fn on_start(&self, host: &str) {
println!("Http server started on {}", host);
}
async fn on_close(&mut self) {
async fn on_close(&self) {
println!("Http server closed");
}
}