Use a single Bias enum everywhere
This commit is contained in:
+1
-7
@@ -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>;
|
||||
|
||||
Reference in New Issue
Block a user