Skip to content

Commit ee39e6e

Browse files
committed
Update air purity to_string values to match expected values on ambi.
1 parent 4fd0085 commit ee39e6e

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)