Skip to content

Commit 77c19a9

Browse files
committed
Apply rustfmt formatting
1 parent 1b341b7 commit 77c19a9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/build_helper/src/git.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,14 +274,15 @@ pub fn get_git_modified_files(
274274
let files = output_result(git.args(["diff-index", "--name-status", merge_base.trim()]))?
275275
.lines()
276276
.filter_map(|f| {
277-
let (status, name) = f.trim().split_once(char::is_whitespace)?
277+
let (status, name) = f.trim().split_once(char::is_whitespace)?;
278278
if status == "D" {
279279
None
280280
} else if Path::new(name).extension().map_or(extensions.is_empty(), |ext| {
281281
// If there is no extension, we allow the path if `extensions` is empty
282282
// If there is an extension, we allow it if `extension` is empty or it contains the
283283
// extension.
284-
extensions.is_empty() || ext.to_str().map_or(false, |ext_str| extensions.contains(&ext_str))
284+
extensions.is_empty()
285+
|| ext.to_str().map_or(false, |ext_str| extensions.contains(&ext_str))
285286
}) {
286287
Some(name.to_owned())
287288
} else {

0 commit comments

Comments
 (0)