Remove unnecessary dependencies in buffer and language crates

This commit is contained in:
Max Brunsfeld 2021-10-21 09:40:50 +02:00
parent 81a85e9c79
commit 37eae2ba67
7 changed files with 34 additions and 61 deletions

View file

@ -29,7 +29,8 @@ use std::{
sync::Arc,
time::{Duration, Instant},
};
use sum_tree::{Bias, FilterCursor, SumTree};
pub use sum_tree::Bias;
use sum_tree::{FilterCursor, SumTree};
#[derive(Clone, Default)]
struct DeterministicState;

View file

@ -109,21 +109,3 @@ impl Ord for Point {
}
}
}
impl Into<tree_sitter::Point> for Point {
fn into(self) -> tree_sitter::Point {
tree_sitter::Point {
row: self.row as usize,
column: self.column as usize,
}
}
}
impl From<tree_sitter::Point> for Point {
fn from(point: tree_sitter::Point) -> Self {
Self {
row: point.row as u32,
column: point.column as u32,
}
}
}