diff options
author | Alan Somers <asomers@gmail.com> | 2021-06-12 13:12:10 -0600 |
---|---|---|
committer | Alan Somers <asomers@gmail.com> | 2021-07-07 20:49:29 -0600 |
commit | 2d796eba380e8f4e5d935b6b356c9d401917b92d (patch) | |
tree | 7b344bb84c5e8a6957f46490e151551b09ce7f1b /test/test_nmount.rs | |
parent | 6511d02414ec9dd4bcaa237336c5f74869e6c41a (diff) | |
download | nix-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/test_nmount.rs')
-rw-r--r-- | test/test_nmount.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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")); } |