History

Fix `clippy::len_zero` lint style violations (#36589)

Related: #36577 Release Notes: - N/A ---------

Umesh Yadav committed 1 year ago

Commit 1e6cefa1 parent 92352f924 files · +46 −46Browse files

Showing the changes to crates/buffer_diff/src/buffer_diff.rs (1 of 24 files). Show all

Unified · Split

crates/buffer_diff/src/buffer_diff.rs+1−1
@@ -2129,7 +2129,7 @@ mod tests { · 2128 unmodified lines
21292129 diff.hunks_intersecting_range(Anchor::MIN..Anchor::MAX, &working_copy, cx)
21302130 .collect::<Vec<_>>()
21312131 });
2132− if hunks.len() == 0 {
2132+ if hunks.is_empty() {
21332133 return;
21342134 }
21352135