no mutable refs in http server
This commit is contained in:
parent
1ae9a50c8b
commit
8be5a692a7
5 changed files with 31 additions and 48 deletions
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue