Skip to content

Commit 7a74d28

Browse files
humendaatopia
authored andcommitted
fix return values in L4Re networking stub
[Benjamin Lamowski: Reworded commit message after split commit.]
1 parent 6045c34 commit 7a74d28

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

library/std/src/sys/unix/l4re.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ pub mod net {
5959
}
6060

6161
pub fn is_read_vectored(&self) -> bool {
62-
unimpl!();
62+
false
6363
}
6464

6565
pub fn peek(&self, _: &mut [u8]) -> io::Result<usize> {
@@ -83,7 +83,7 @@ pub mod net {
8383
}
8484

8585
pub fn is_write_vectored(&self) -> bool {
86-
unimpl!();
86+
false
8787
}
8888

8989
pub fn set_timeout(&self, _: Option<Duration>, _: libc::c_int) -> io::Result<()> {
@@ -191,7 +191,7 @@ pub mod net {
191191
}
192192

193193
pub fn is_read_vectored(&self) -> bool {
194-
unimpl!();
194+
false
195195
}
196196

197197
pub fn write(&self, _: &[u8]) -> io::Result<usize> {
@@ -203,7 +203,7 @@ pub mod net {
203203
}
204204

205205
pub fn is_write_vectored(&self) -> bool {
206-
unimpl!();
206+
false
207207
}
208208

209209
pub fn peer_addr(&self) -> io::Result<SocketAddr> {

0 commit comments

Comments
 (0)