constructor now returns Self
changed the return of the constructor from type Server to type Self
This commit is contained in:
parent
700c093c6b
commit
2827ab5c5e
|
|
@ -32,7 +32,7 @@ impl<'z> Server<'z> {
|
|||
thread_pool: ThreadPool::new(16),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
pub fn get_address(&self) -> String{
|
||||
self.address.to_string()
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue