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/test_nmount.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/test_nmount.rs') diff --git a/test/test_nmount.rs b/test/test_nmount.rs index 92f459d6..4c74ecf6 100644 --- a/test/test_nmount.rs +++ b/test/test_nmount.rs @@ -46,6 +46,6 @@ fn bad_fstype() { .str_opt_owned("target", target.path().to_str().unwrap()) .nmount(MntFlags::empty()).unwrap_err(); - assert_eq!(e.errno(), Errno::EINVAL); + assert_eq!(e.error(), Errno::EINVAL); assert_eq!(e.errmsg(), Some("Invalid fstype")); } -- cgit v1.2.3