@@ -11,15 +11,6 @@ use crate::{
11use smallvec::{smallvec, SmallVec};
11use smallvec::{smallvec, SmallVec};
12use std::borrow::Cow;
12use std::borrow::Cow;
15−fn abs_difference(x: usize, y: usize) -> usize {
23/// A single selection range.
14/// A single selection range.
25/// The range consists of an "anchor" and "head" position in
16/// The range consists of an "anchor" and "head" position in
@@ -367,7 +358,7 @@ impl Selection {
369 /// A convenience short-cut for `transform(|r| r.min_width_1(text))`.
360 /// A convenience short-cut for `transform(|r| r.min_width_1(text))`.
370− pub fn min_width_1(mut self, text: RopeSlice) -> Self {
361+ pub fn min_width_1(self, text: RopeSlice) -> Self {
371 self.transform(|r| r.min_width_1(text))
362 self.transform(|r| r.min_width_1(text))