Skip to content

Commit

Permalink
Fix lint warning in compile-test.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
xiongmao86 committed Jan 4, 2020
1 parent ab37f3b commit ddab2b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/compile-test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")) {
Expand Down

0 comments on commit ddab2b8

Please sign in to comment.