Fix a couple additional unused
warnings after merge.
This commit is contained in:
parent
2224a1527e
commit
230248bbc3
1 changed files with 1 additions and 10 deletions
|
@ -11,15 +11,6 @@ use crate::{
|
|||
use smallvec::{smallvec, SmallVec};
|
||||
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.
|
||||
///
|
||||
/// 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))`.
|
||||
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))
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue