@@ -1,4 +1,4 @@
1−use crate::{Assoc, ChangeSet, Rope, State, Transaction};
1+use crate::{Assoc, ChangeSet, Range, Rope, State, Transaction};
22use once_cell::sync::Lazy;
33use regex::Regex;
44use std::num::NonZeroUsize;
@@ -148,9 +148,7 @@ impl History {
148148 .transaction
149149 .changes_iter()
150150 // find a change that matches the primary selection
151− .find(|(from, to, _fragment)| {
152− crate::Range::new(*from, *to).overlaps(&primary_selection)
153− })
151+ .find(|(from, to, _fragment)| Range::new(*from, *to).overlaps(&primary_selection))
154152 // or use the first change
155153 .or_else(|| current_revision.transaction.changes_iter().next())
156154 .unwrap();