diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/sys/signalfd.rs | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/sys/signalfd.rs b/src/sys/signalfd.rs index 3d82b5ba..166bb9d2 100644 --- a/src/sys/signalfd.rs +++ b/src/sys/signalfd.rs @@ -147,18 +147,17 @@ mod tests { #[test] fn create_signalfd() { let mask = SigSet::empty(); - let fd = SignalFd::new(&mask); - fd.expect("assert failed"); + SignalFd::new(&mask).unwrap(); } #[test] fn create_signalfd_with_opts() { let mask = SigSet::empty(); - let fd = SignalFd::with_flags( + SignalFd::with_flags( &mask, SfdFlags::SFD_CLOEXEC | SfdFlags::SFD_NONBLOCK, - ); - fd.expect("assert failed"); + ) + .unwrap(); } #[test] |