From 2d796eba380e8f4e5d935b6b356c9d401917b92d Mon Sep 17 00:00:00 2001 From: Alan Somers Date: Sat, 12 Jun 2021 13:12:10 -0600 Subject: 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. --- test/sys/test_signal.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/sys/test_signal.rs') 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] -- cgit v1.2.3