mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-22 08:53:29 +00:00
Adjust as_socket
signature
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
a7741a8a75
commit
16db96e496
@ -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)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user