Skip to content

Commit

Permalink
clippy fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dzhou121 committed Mar 27, 2024
1 parent c425615 commit d5fa48e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/views/editor/visual_line.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3469,10 +3469,10 @@ mod tests {
}

fn check_equiv(text: &Rope, expected: usize, from: &str) {
let (text_prov, lines) = make_lines(&text, 10000., false);
let (text_prov, lines) = make_lines(text, 10000., false);
let end1 = eor(&lines, &text_prov, RVLine::new(0, 0));

let (text_prov, lines) = make_lines(&text, 10000., true);
let (text_prov, lines) = make_lines(text, 10000., true);
assert_eq!(
eor(&lines, &text_prov, RVLine::new(0, 0)),
end1,
Expand Down Expand Up @@ -3542,10 +3542,10 @@ mod tests {
// TODO: tests for them being equivalent even with wrapping

fn check_equiv(text: &Rope, from: &str) {
let (text_prov, lines) = make_lines(&text, 10000., false);
let (text_prov, lines) = make_lines(text, 10000., false);
let iter = lines.iter_rvlines(&text_prov, false, RVLine::default());

let (text_prov, lines) = make_lines(&text, 01000., true);
let (text_prov, lines) = make_lines(text, 01000., true);
let iter2 = lines.iter_rvlines(&text_prov, false, RVLine::default());

// Just assume same length
Expand Down

0 comments on commit d5fa48e

Please sign in to comment.