mirror of
https://github.com/rust-lang/rust-clippy
synced 2025-02-17 06:28:42 +00:00
Fix lint warning in compile-test.rs
This commit is contained in:
parent
a1f81355a7
commit
bf9e6ca9f6
1 changed files with 1 additions and 1 deletions
|
@ -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")) {
|
||||
|
|
Loading…
Add table
Reference in a new issue