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_aio.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/sys/test_aio.rs') diff --git a/test/sys/test_aio.rs b/test/sys/test_aio.rs index f1d9a3b1..3208410e 100644 --- a/test/sys/test_aio.rs +++ b/test/sys/test_aio.rs @@ -177,7 +177,7 @@ fn test_aio_suspend() { let cbbuf = [wcb.as_ref(), rcb.as_ref()]; let r = aio_suspend(&cbbuf[..], Some(timeout)); match r { - Err(Error(Errno::EINTR)) => continue, + Err(Errno::EINTR) => continue, Err(e) => panic!("aio_suspend returned {:?}", e), Ok(_) => () }; -- cgit v1.2.3