diff --git a/zed/src/editor/buffer/rope.rs b/zed/src/editor/buffer/rope.rs index 0dec8fbc1464089b9812587d45b5fef0d6d1957e..9924120cc0c1ea2fe72914bbbdbee1a45c36d6d7 100644 --- a/zed/src/editor/buffer/rope.rs +++ b/zed/src/editor/buffer/rope.rs @@ -544,7 +544,7 @@ mod tests { let byte_range = byte_range_for_char_range(&expected, start_ix..end_ix); assert_eq!( actual.cursor(start_ix).summary(end_ix), - TextSummary::from(&expected[byte_range.start..byte_range.end]) + TextSummary::from(&expected[byte_range]) ); } }