feature: Show Celcius/Fahrenheit with degree symbol (#391)

This commit is contained in:
Erlend Hamberg 2021-01-20 07:55:18 +01:00 committed by GitHub
parent e30518bf62
commit 5e28f0c538
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -93,9 +93,9 @@ pub fn convert_temp_row(app: &App) -> Vec<Vec<String>> {
temp_harvest.name.clone(), temp_harvest.name.clone(),
(temp_harvest.temperature.ceil() as u64).to_string() (temp_harvest.temperature.ceil() as u64).to_string()
+ match temp_type { + match temp_type {
data_harvester::temperature::TemperatureType::Celsius => "C", data_harvester::temperature::TemperatureType::Celsius => "°C",
data_harvester::temperature::TemperatureType::Kelvin => "K", data_harvester::temperature::TemperatureType::Kelvin => "K",
data_harvester::temperature::TemperatureType::Fahrenheit => "F", data_harvester::temperature::TemperatureType::Fahrenheit => "°F",
}, },
] ]
}) })