We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f813ea1 commit ebffeddCopy full SHA for ebffedd
test_suite/ui_tests.rs
@@ -1,14 +1,14 @@
1
use glob::glob;
2
-use std::os::unix::ffi::OsStrExt;
3
4
#[test]
5
fn ui() {
6
let t = trybuild::TestCases::new();
7
for test in glob("ui/*.rs").unwrap() {
8
let path = test.unwrap();
9
- match path.as_os_str().as_bytes() {
10
- b"ui/must_use_warning.rs" => t.pass(path),
11
- _ => t.compile_fail(path),
+ if path == std::path::Path::new("ui/must_use_warning.rs") {
+ t.pass(path)
+ } else {
+ t.compile_fail(path)
12
}
13
14
0 commit comments