add as_raw() method to L4Re's Socket mock
Minimally comply with with #87329 to avoid breaking tests on L4Re.
This commit is contained in:
parent
cb013d4802
commit
bc199b5778
@ -122,6 +122,11 @@ pub fn set_nonblocking(&self, _: bool) -> io::Result<()> {
|
||||
pub fn take_error(&self) -> io::Result<Option<io::Error>> {
|
||||
unimpl!();
|
||||
}
|
||||
|
||||
// This is used by sys_common code to abstract over Windows and Unix.
|
||||
pub fn as_raw(&self) -> RawFd {
|
||||
self.as_raw_fd()
|
||||
}
|
||||
}
|
||||
|
||||
impl AsInner<FileDesc> for Socket {
|
||||
|
Loading…
Reference in New Issue
Block a user