Skip to content

Commit

Permalink
Replace .unwrap() with ? in std::os::unix::net
Browse files Browse the repository at this point in the history
  • Loading branch information
linkmauve committed Nov 24, 2019
1 parent 7d761fe commit 8f158bc
Show file tree
Hide file tree
Showing 2 changed files with 237 additions and 149 deletions.
2 changes: 1 addition & 1 deletion src/libstd/sys/unix/ext/mod.rs
Expand Up @@ -16,7 +16,7 @@
//! use std::os::unix::prelude::*;
//!
//! fn main() {
//! let f = File::create("foo.txt").unwrap();
//! let f = File::create("foo.txt")?;
//! let fd = f.as_raw_fd();
//!
//! // use fd with native unix bindings
Expand Down

0 comments on commit 8f158bc

Please sign in to comment.