Use a single Bias enum everywhere

This commit is contained in:
Antonio Scandurra
2021-06-04 13:39:57 +02:00
parent 3b9d760f2b
commit e071d40058
9 changed files with 128 additions and 177 deletions
+1 -7
View File
@@ -5,7 +5,7 @@ pub mod movement;
use crate::{
settings::{Settings, StyleId},
util::post_inc,
util::{post_inc, Bias},
workspace,
worktree::FileHandle,
};
@@ -4137,12 +4137,6 @@ mod tests {
}
}
#[derive(Copy, Clone)]
pub enum Bias {
Left,
Right,
}
trait RangeExt<T> {
fn sorted(&self) -> Range<T>;
fn to_inclusive(&self) -> RangeInclusive<T>;