on master help sign in
Fix a couple additional `unused` warnings after merge.
commit230248bbc3e453bab339cb865990c3fa2f518311 authorNathan Vegdahl <cessen@cessen.com> dateThu 1 Jul 2021, 19:40 (5 years ago) parent2224a15
1 file changed+1−10
helix-core/src/selection.rs+1−10
helix-core/src/selection.rs+1−10
@@ -11,15 +11,6 @@ use crate::{
1111use smallvec::{smallvec, SmallVec};
1212use std::borrow::Cow;
1313
14−#[inline]
15−fn abs_difference(x: usize, y: usize) -> usize {
16− if x < y {
17− y - x
18− } else {
19− x - y
20− }
21−}
22−
2314/// A single selection range.
2415///
2516/// The range consists of an "anchor" and "head" position in
@@ -367,7 +358,7 @@ impl Selection {
367358 }
368359
369360 /// 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 {
371362 self.transform(|r| r.min_width_1(text))
372363 }
373364