mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
..
This commit is contained in:
parent
5665096094
commit
3e617bc7d2
2 changed files with 2 additions and 5 deletions
|
|
@ -6,7 +6,6 @@ pub enum Step {
|
|||
}
|
||||
|
||||
impl Default for Step {
|
||||
#[inline]
|
||||
fn default() -> Self { Self::Fixed(0) }
|
||||
}
|
||||
|
||||
|
|
@ -23,12 +22,10 @@ impl FromStr for Step {
|
|||
}
|
||||
|
||||
impl From<isize> for Step {
|
||||
#[inline]
|
||||
fn from(n: isize) -> Self { Self::Fixed(n) }
|
||||
}
|
||||
|
||||
impl From<usize> for Step {
|
||||
#[inline]
|
||||
fn from(n: usize) -> Self { Self::Fixed(n as isize) }
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue