Skip to content

Commit 5c59176

Browse files
committed
Ignore non-yml files in generator
Otherwise this picks up vim .swp files.
1 parent 04cdf31 commit 5c59176

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

crates/stdarch-gen-arm/src/main.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ fn parse_args() -> Vec<(PathBuf, Option<PathBuf>)> {
139139
.into_iter()
140140
.filter_map(Result::ok)
141141
.filter(|f| f.file_type().is_file())
142+
.filter(|f| f.file_name().to_string_lossy().ends_with(".yml"))
142143
.map(|f| (f.into_path(), out_dir.clone()))
143144
.collect()
144145
}

0 commit comments

Comments
 (0)