This commit is contained in:
sxyazi 2023-09-24 17:26:47 +08:00
parent 5665096094
commit 3e617bc7d2
No known key found for this signature in database
2 changed files with 2 additions and 5 deletions

View file

@ -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) }
}