From 5c8525ce4ae8bb969f2ac263bf14adad1c835c03 Mon Sep 17 00:00:00 2001 From: Bernardo Date: Sat, 22 Dec 2018 15:44:27 +0100 Subject: column translation implemented but not quite working yet --- crates/ra_editor/benches/translate_offset_with_edit_benchmark.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/ra_editor/benches') diff --git a/crates/ra_editor/benches/translate_offset_with_edit_benchmark.rs b/crates/ra_editor/benches/translate_offset_with_edit_benchmark.rs index b345a91ae..89ed99823 100644 --- a/crates/ra_editor/benches/translate_offset_with_edit_benchmark.rs +++ b/crates/ra_editor/benches/translate_offset_with_edit_benchmark.rs @@ -72,10 +72,10 @@ fn compare_translates(c: &mut Criterion) { }) }); - let f2 = Fun::new("count_newlines", |b, _| { + let f2 = Fun::new("translate_offset_with_edit", |b, _| { b.iter(|| { let d = &*DATA; - line_index_utils::count_newlines(d.offset, &d.line_index, &d.edits); + line_index_utils::translate_offset_with_edit(&d.line_index, d.offset, &d.edits); }) }); -- cgit v1.2.3