summaryrefslogtreecommitdiff
path: root/test/test_nmount.rs
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_nmount.rs')
-rw-r--r--test/test_nmount.rs2
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"));
}