From 74320945b664916005d263552194201cbe9a52bc Mon Sep 17 00:00:00 2001 From: "Jeremy A. Kolb" Date: Wed, 31 Oct 2018 15:27:35 -0400 Subject: Make extend private again --- crates/ra_editor/src/extend_selection.rs | 2 +- crates/ra_editor/src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/ra_editor/src') diff --git a/crates/ra_editor/src/extend_selection.rs b/crates/ra_editor/src/extend_selection.rs index 71be15d39..9d8df25c3 100644 --- a/crates/ra_editor/src/extend_selection.rs +++ b/crates/ra_editor/src/extend_selection.rs @@ -10,7 +10,7 @@ pub fn extend_selection(file: &File, range: TextRange) -> Option { extend(syntax.borrowed(), range) } -pub fn extend(root: SyntaxNodeRef, range: TextRange) -> Option { +pub(crate) fn extend(root: SyntaxNodeRef, range: TextRange) -> Option { if range.is_empty() { let offset = range.start(); let mut leaves = find_leaf_at_offset(root, offset); diff --git a/crates/ra_editor/src/lib.rs b/crates/ra_editor/src/lib.rs index b98461ed2..02a1b2d45 100644 --- a/crates/ra_editor/src/lib.rs +++ b/crates/ra_editor/src/lib.rs @@ -20,7 +20,7 @@ mod typing; pub use self::{ code_actions::{add_derive, add_impl, flip_comma, introduce_variable, LocalEdit}, edit::{Edit, EditBuilder}, - extend_selection::{extend, extend_selection}, + extend_selection::extend_selection, folding_ranges::{folding_ranges, Fold, FoldKind}, line_index::{LineCol, LineIndex}, symbols::{file_structure, file_symbols, FileSymbol, StructureNode}, -- cgit v1.2.3