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_ide/src/source_change.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/ra_ide/src/source_change.rs') diff --git a/crates/ra_ide/src/source_change.rs b/crates/ra_ide/src/source_change.rs index f5f7f8807..71b0e8f75 100644 --- a/crates/ra_ide/src/source_change.rs +++ b/crates/ra_ide/src/source_change.rs @@ -6,7 +6,7 @@ use ra_db::RelativePathBuf; use ra_text_edit::TextEdit; -use crate::{FileId, FilePosition, SourceRootId, TextUnit}; +use crate::{FileId, FilePosition, SourceRootId, TextSize}; #[derive(Debug)] pub struct SourceChange { @@ -104,7 +104,7 @@ pub enum FileSystemEdit { pub(crate) struct SingleFileChange { pub label: String, pub edit: TextEdit, - pub cursor_position: Option, + pub cursor_position: Option, } impl SingleFileChange { -- cgit v1.2.3