Fix warnings in tests

Remove following warnings
- unused import
- unused Result

Signed-off-by: Tim Zhang <tim@hyper.sh>
This commit is contained in:
Tim Zhang
2020-11-11 20:12:30 +08:00
parent f34225411e
commit fbd7164c29
10 changed files with 62 additions and 63 deletions
+2 -2
View File
@@ -30,7 +30,7 @@ fn test_disable_oom_killer() {
assert_eq!(m.oom_control.oom_kill_disable, true);
}
}
cg.delete();
cg.delete().unwrap();
}
#[test]
@@ -87,5 +87,5 @@ fn set_mem_v2() {
assert_eq!(m.high, Some(MaxValue::Max));
}
cg.delete();
cg.delete().unwrap();
}