Skip to content

Commit d97d93e

Browse files
committed
Convert Result type for non-unix case
1 parent 9dc1dee commit d97d93e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libstd/sys_common/net.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ pub fn lookup_host(host: &str) -> io::Result<LookupHost> {
189189
c::res_init();
190190
Err(e)
191191
},
192-
e => e,
192+
Err(e) => Err(e),
193193
}
194194
}
195195
}

0 commit comments

Comments
 (0)