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
1 changed files with 5 additions and 0 deletions
|
@ -122,6 +122,11 @@ pub mod net {
|
|||
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…
Add table
Reference in a new issue