about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSebastian Humenda <shumenda@gmx.de>2018-12-05 15:53:14 +0100
committerBenjamin Lamowski <benjamin.lamowski@kernkonzept.com>2022-03-09 11:53:27 +0100
commit11b717647ef9a772a3a4b9e4dd6282db0b69ff32 (patch)
tree61eefbe62f0e4b2c8a2d2bba530dce0d271c65ef
parent7a74d28c389e750b0876e65859108adc842ab5bd (diff)
downloadrust-11b717647ef9a772a3a4b9e4dd6282db0b69ff32.tar.gz
rust-11b717647ef9a772a3a4b9e4dd6282db0b69ff32.zip
fix return value of LookupHost::port()
[Benjamin Lamowski: Reworded commit message after split commit.]
-rw-r--r--library/std/src/sys/unix/l4re.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/sys/unix/l4re.rs b/library/std/src/sys/unix/l4re.rs
index cf101f934e1..2bc37fc56b2 100644
--- a/library/std/src/sys/unix/l4re.rs
+++ b/library/std/src/sys/unix/l4re.rs
@@ -497,7 +497,7 @@ pub mod net {
 
     impl LookupHost {
         pub fn port(&self) -> u16 {
-            unimpl!();
+            0 // unimplemented
         }
     }