Clippy fixes
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
use std::fmt;
|
use std::fmt;
|
||||||
|
|
||||||
#[derive(Ord, PartialOrd, Eq, PartialEq)]
|
#[derive(Ord, PartialOrd, Eq, PartialEq)]
|
||||||
pub struct AmongUsVersion {
|
pub struct AmongUsVersion {
|
||||||
year: i32,
|
year: i32,
|
||||||
@@ -20,9 +21,9 @@ impl From<&str> for AmongUsVersion {
|
|||||||
let v: Vec<&str> = tmp_str.split('.').collect();
|
let v: Vec<&str> = tmp_str.split('.').collect();
|
||||||
|
|
||||||
AmongUsVersion {
|
AmongUsVersion {
|
||||||
year: i32::from_str_radix(v[0], 10).unwrap(),
|
year: v[0].parse().unwrap(),
|
||||||
month: i32::from_str_radix(v[1], 10).unwrap(),
|
month: v[1].parse().unwrap(),
|
||||||
day: i32::from_str_radix(v[2], 10).unwrap(),
|
day: v[2].parse().unwrap(),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user