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:
Benjamin Lamowski 2022-01-14 17:42:40 +01:00
parent cb013d4802
commit bc199b5778

View File

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