summaryrefslogtreecommitdiff
path: root/test/sys/test_signal.rs
diff options
context:
space:
mode:
authorAlan Somers <asomers@gmail.com>2021-06-12 13:12:10 -0600
committerAlan Somers <asomers@gmail.com>2021-07-07 20:49:29 -0600
commit2d796eba380e8f4e5d935b6b356c9d401917b92d (patch)
tree7b344bb84c5e8a6957f46490e151551b09ce7f1b /test/sys/test_signal.rs
parent6511d02414ec9dd4bcaa237336c5f74869e6c41a (diff)
downloadnix-2d796eba380e8f4e5d935b6b356c9d401917b92d.zip
Collapse Error into Errno
Now that Nix's weird error types are eliminated, there's no reason not to simply use Errno as the Error type.
Diffstat (limited to 'test/sys/test_signal.rs')
-rw-r--r--test/sys/test_signal.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/sys/test_signal.rs b/test/sys/test_signal.rs
index 741d97b9..1b89af57 100644
--- a/test/sys/test_signal.rs
+++ b/test/sys/test_signal.rs
@@ -1,5 +1,5 @@
#[cfg(not(target_os = "redox"))]
-use nix::{errno::Errno, Error};
+use nix::errno::Errno;
use nix::sys::signal::*;
use nix::unistd::*;
use std::convert::TryFrom;
@@ -92,7 +92,7 @@ fn test_signal_sigaction() {
let _m = crate::SIGNAL_MTX.lock().expect("Mutex got poisoned by another test");
let action_handler = SigHandler::SigAction(test_sigaction_action);
- assert_eq!(unsafe { signal(Signal::SIGINT, action_handler) }.unwrap_err(), Error(Errno::ENOTSUP));
+ assert_eq!(unsafe { signal(Signal::SIGINT, action_handler) }.unwrap_err(), Errno::ENOTSUP);
}
#[test]