Change language::min() to a constant

Co-authored-by: Antonio Scandurra <me@as-cii.com>
Co-authored-by: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
Keith Simmons 2022-03-24 10:35:30 -07:00
parent f6805eb802
commit ab631cf6c3
10 changed files with 33 additions and 62 deletions

View file

@ -4,8 +4,6 @@ pub mod items;
pub mod movement;
mod multi_buffer;
pub mod repro;
#[cfg(test)]
mod test;
@ -4422,13 +4420,7 @@ impl Editor {
.into_iter()
.flat_map(|(_, ranges)| ranges),
)
.collect::<Vec<_>>();
let snapshot = this.buffer.read(cx).snapshot(cx);
let point_ranges = ranges
.iter()
.map(|range| range.to_point(&snapshot))
.collect::<Vec<_>>();
.collect();
this.highlight_text::<Rename>(
ranges,