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
2129 diff.hunks_intersecting_range(Anchor::MIN..Anchor::MAX, &working_copy, cx)2129 diff.hunks_intersecting_range(Anchor::MIN..Anchor::MAX, &working_copy, cx)
2130 .collect::<Vec<_>>()2130 .collect::<Vec<_>>()
2131 });2131 });
2132 if hunks.len() == 0 {2132 if hunks.is_empty() {
2133 return;2133 return;
2134 }2134 }
2135 2135