Remove pointless error codes in unregister_observer

This commit is contained in:
Ruihan Li
2024-04-20 23:17:20 -07:00
committed by Tate, Hongliang Tian
parent 57f4ed778d
commit ab87f473c4
6 changed files with 13 additions and 21 deletions

View File

@ -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>> {