Small changes.
This commit is contained in:
@@ -70,7 +70,7 @@ impl FromStr for Room {
|
||||
}
|
||||
|
||||
if let Some(caps) = RE.captures(s) {
|
||||
let enc_name = String::from(caps.at(1).unwrap());
|
||||
let enc_name = caps.at(1).unwrap().parse::<String>().unwrap();
|
||||
let sector_id = caps.at(2).unwrap().parse::<u32>().unwrap();
|
||||
let checksum = caps.at(3).unwrap().chars().collect::<Vec<_>>();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user