mirror of https://github.com/helix-editor/helix
Fix a couple additional `unused` warnings after merge.
parent
2224a1527e
commit
230248bbc3
|
@ -11,15 +11,6 @@ use crate::{
|
||||||
use smallvec::{smallvec, SmallVec};
|
use smallvec::{smallvec, SmallVec};
|
||||||
use std::borrow::Cow;
|
use std::borrow::Cow;
|
||||||
|
|
||||||
#[inline]
|
|
||||||
fn abs_difference(x: usize, y: usize) -> usize {
|
|
||||||
if x < y {
|
|
||||||
y - x
|
|
||||||
} else {
|
|
||||||
x - y
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// A single selection range.
|
/// A single selection range.
|
||||||
///
|
///
|
||||||
/// The range consists of an "anchor" and "head" position in
|
/// The range consists of an "anchor" and "head" position in
|
||||||
|
@ -367,7 +358,7 @@ impl Selection {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// A convenience short-cut for `transform(|r| r.min_width_1(text))`.
|
/// A convenience short-cut for `transform(|r| r.min_width_1(text))`.
|
||||||
pub fn min_width_1(mut self, text: RopeSlice) -> Self {
|
pub fn min_width_1(self, text: RopeSlice) -> Self {
|
||||||
self.transform(|r| r.min_width_1(text))
|
self.transform(|r| r.min_width_1(text))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue