Related: #36577 Release Notes: - N/A ---------
Showing the changes to crates/buffer_diff/src/buffer_diff.rs (1 of 24 files). Show all
Unified · Split
| @@ -2129,7 +2129,7 @@ mod tests { · 2128 unmodified lines | ||
| 2129 | 2129 | diff.hunks_intersecting_range(Anchor::MIN..Anchor::MAX, &working_copy, cx) |
| 2130 | 2130 | .collect::<Vec<_>>() |
| 2131 | 2131 | }); |
| 2132 | − if hunks.len() == 0 { | |
| 2132 | + if hunks.is_empty() { | |
| 2133 | 2133 | return; |
| 2134 | 2134 | } |
| 2135 | 2135 | |