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.
get_git_modified_files
1 parent ca0a86a commit 20f0e27Copy full SHA for 20f0e27
src/build_helper/src/git.rs
@@ -186,7 +186,7 @@ pub fn get_git_modified_files(
186
let (status, name) = f.trim().split_once(char::is_whitespace).unwrap();
187
if status == "D" {
188
None
189
- } else if Path::new(name).extension().map_or(false, |ext| {
+ } else if Path::new(name).extension().map_or(true, |ext| {
190
extensions.is_empty() || extensions.contains(&ext.to_str().unwrap())
191
}) {
192
Some(name.to_owned())
0 commit comments