From b1d5817dd18b7b5fc102a63b084b1ee7ff4f9996 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Fri, 24 Apr 2020 23:40:41 +0200 Subject: Convert code to text-size --- crates/ra_db/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/ra_db') diff --git a/crates/ra_db/src/lib.rs b/crates/ra_db/src/lib.rs index a06f59c14..fd4280de2 100644 --- a/crates/ra_db/src/lib.rs +++ b/crates/ra_db/src/lib.rs @@ -6,7 +6,7 @@ pub mod fixture; use std::{panic, sync::Arc}; use ra_prof::profile; -use ra_syntax::{ast, Parse, SourceFile, TextRange, TextUnit}; +use ra_syntax::{ast, Parse, SourceFile, TextRange, TextSize}; pub use crate::{ cancellation::Canceled, @@ -75,7 +75,7 @@ impl CheckCanceled for T { #[derive(Clone, Copy, Debug)] pub struct FilePosition { pub file_id: FileId, - pub offset: TextUnit, + pub offset: TextSize, } #[derive(Clone, Copy, Debug)] -- cgit v1.2.3