Small changes.

This commit is contained in:
2016-12-23 19:52:02 +01:00
parent 5f8df692b6
commit df49cc1866
9 changed files with 338 additions and 2 deletions

View File

@@ -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<_>>();

View File

@@ -145,7 +145,6 @@ impl Office {
Err(())
}
}
impl fmt::Display for Office {