Skip to content

Commit 672e810

Browse files
authored
Merge pull request #3 from Jim-Hodapp-Coaching/update_air_purity_options
Update air purity to_string values to match expected values on ambi.
2 parents 4fd0085 + ee39e6e commit 672e810

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,10 @@ impl AirPurity {
5555
impl fmt::Display for AirPurity {
5656
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
5757
match self {
58-
AirPurity::Low => write!(f, "LOW"),
59-
AirPurity::High => write!(f, "HIGH"),
60-
AirPurity::Dangerous => write!(f, "DANGEROUS"),
61-
AirPurity::FreshAir => write!(f, "FRESH_AIR")
58+
AirPurity::Low => write!(f, "Fresh Air"),
59+
AirPurity::High => write!(f, "Low Pollution"),
60+
AirPurity::Dangerous => write!(f, "High Pollution"),
61+
AirPurity::FreshAir => write!(f, "Dangerous Pollution")
6262
}
6363
}
6464
}

0 commit comments

Comments
 (0)