Fix lint warning in compile-test.rs

This commit is contained in:
xiongmao86 2020-01-04 11:24:09 +08:00
parent a1f81355a7
commit bf9e6ca9f6

View File

@ -121,7 +121,7 @@ fn run_ui_toml_tests(config: &compiletest::Config, mut tests: Vec<test::TestDesc
for file in fs::read_dir(&dir_path)? {
let file = file?;
let file_path = file.path();
if !file.file_type()?.is_file() {
if file.file_type()?.is_dir() {
continue;
}
if file_path.extension() != Some(OsStr::new("rs")) {