Fixup compile errors
This commit is contained in:
parent
8c75df30cb
commit
e51cbf67ab
11 changed files with 83 additions and 103 deletions
|
@ -14,7 +14,6 @@ use util::post_inc;
|
|||
use crate::{
|
||||
display_map::{DisplayMap, DisplaySnapshot, ToDisplayPoint},
|
||||
Anchor, DisplayPoint, ExcerptId, MultiBuffer, MultiBufferSnapshot, SelectMode, ToOffset,
|
||||
ToOffsetClipped,
|
||||
};
|
||||
|
||||
#[derive(Clone)]
|
||||
|
@ -551,18 +550,6 @@ impl<'a> MutableSelectionsCollection<'a> {
|
|||
self.select_offset_ranges(ranges);
|
||||
}
|
||||
|
||||
pub fn select_clipped_ranges<I, T>(&mut self, ranges: I)
|
||||
where
|
||||
I: IntoIterator<Item = Range<T>>,
|
||||
T: ToOffsetClipped,
|
||||
{
|
||||
let buffer = self.buffer.read(self.cx).snapshot(self.cx);
|
||||
let ranges = ranges.into_iter().map(|range| {
|
||||
range.start.to_offset_clipped(&buffer)..range.end.to_offset_clipped(&buffer)
|
||||
});
|
||||
self.select_offset_ranges(ranges);
|
||||
}
|
||||
|
||||
fn select_offset_ranges<I>(&mut self, ranges: I)
|
||||
where
|
||||
I: IntoIterator<Item = Range<usize>>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue