Adjust as_socket signature

This commit is contained in:
Ruihan Li
2024-12-26 22:04:14 +08:00
committed by Tate, Hongliang Tian
parent a7741a8a75
commit 16db96e496
20 changed files with 110 additions and 92 deletions

View File

@ -453,7 +453,7 @@ impl FileLike for StreamSocket {
Ok(())
}
fn as_socket(self: Arc<Self>) -> Option<Arc<dyn Socket>> {
fn as_socket(&self) -> Option<&dyn Socket> {
Some(self)
}