constructor now returns Self

changed the return of the constructor from type Server to type Self
This commit is contained in:
Mitch161 2020-07-19 21:07:23 +01:00
parent 700c093c6b
commit 2827ab5c5e
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ impl<'z> Server<'z> {
thread_pool: ThreadPool::new(16),
}
}
pub fn get_address(&self) -> String{
self.address.to_string()
}