From 95209aa3f8e4b149da6adb374611ece76c2b82ca Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Fri, 12 Feb 2021 22:09:53 +0300 Subject: Make utf8 default, implement utf16 in terms of it --- crates/ide_db/src/line_index/tests.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/ide_db/src/line_index') diff --git a/crates/ide_db/src/line_index/tests.rs b/crates/ide_db/src/line_index/tests.rs index af51d7348..09f3bca62 100644 --- a/crates/ide_db/src/line_index/tests.rs +++ b/crates/ide_db/src/line_index/tests.rs @@ -17,14 +17,14 @@ fn test_line_index() { let index = LineIndex::new(text); for &(offset, line, col) in &table { - assert_eq!(index.line_col(offset.into()), LineColUtf16 { line, col }); + assert_eq!(index.line_col(offset.into()), LineCol { line, col }); } let text = "\nhello\nworld"; let table = [(0, 0, 0), (1, 1, 0), (2, 1, 1), (6, 1, 5), (7, 2, 0)]; let index = LineIndex::new(text); for &(offset, line, col) in &table { - assert_eq!(index.line_col(offset.into()), LineColUtf16 { line, col }); + assert_eq!(index.line_col(offset.into()), LineCol { line, col }); } } -- cgit v1.2.3