mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-22 17:03:23 +00:00
Remove pointless error codes in unregister_observer
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
57f4ed778d
commit
ab87f473c4
@ -96,11 +96,12 @@ pub trait FileLike: Send + Sync + Any {
|
||||
return_errno_with_message!(Errno::EINVAL, "register_observer is not supported")
|
||||
}
|
||||
|
||||
#[must_use]
|
||||
fn unregister_observer(
|
||||
&self,
|
||||
observer: &Weak<dyn Observer<IoEvents>>,
|
||||
) -> Result<Weak<dyn Observer<IoEvents>>> {
|
||||
return_errno_with_message!(Errno::EINVAL, "unregister_observer is not supported")
|
||||
) -> Option<Weak<dyn Observer<IoEvents>>> {
|
||||
None
|
||||
}
|
||||
|
||||
fn as_socket(self: Arc<Self>) -> Option<Arc<dyn Socket>> {
|
||||
|
Reference in New Issue
Block a user