Skip to content

Commit d6f42fd

Browse files
committed
add as_raw() method to L4Re's Socket mock
Minimally comply with with rust-lang#87329 to avoid breaking tests on L4Re.
1 parent 113afd0 commit d6f42fd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

std/src/sys/unix/l4re.rs

+5
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,11 @@ pub mod net {
122122
pub fn take_error(&self) -> io::Result<Option<io::Error>> {
123123
unimpl!();
124124
}
125+
126+
// This is used by sys_common code to abstract over Windows and Unix.
127+
pub fn as_raw(&self) -> RawFd {
128+
self.as_raw_fd()
129+
}
125130
}
126131

127132
impl AsInner<FileDesc> for Socket {

0 commit comments

Comments
 (0)