Skip to content

Commit f3eb996

Browse files
committed
cargo clippy
1 parent eb31b24 commit f3eb996

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/info/commits.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,11 @@ impl InfoField for CommitsInfo {
3434
format!(
3535
"{}{}",
3636
format_number(&self.number_of_commits, self.number_separator),
37-
self.is_shallow.then_some(" (shallow)").unwrap_or_default()
37+
if self.is_shallow {
38+
" (shallow)"
39+
} else {
40+
Default::default()
41+
}
3842
)
3943
}
4044

0 commit comments

Comments
 (0)