diff --git a/src/icons.rs b/src/icons.rs index c48737b..b9fe34a 100644 --- a/src/icons.rs +++ b/src/icons.rs @@ -1,6 +1,6 @@ #[allow(dead_code)] pub enum Icons { - Fahrenheight, + Fahrenheit, Clock, Baseball, Sunny, @@ -15,7 +15,7 @@ impl Icons { pub fn get_icon_str(&self) -> String { match self { - Icons::Fahrenheight => Self::get_icon("e341").unwrap().to_string(), + Icons::Fahrenheit => Self::get_icon("e341").unwrap().to_string(), Icons::Clock => Self::get_icon("e641").unwrap().to_string(), Icons::Baseball => Self::get_icon("f0852").unwrap().to_string(), Icons::Sunny => Self::get_icon("f0599").unwrap().to_string(), diff --git a/src/main.rs b/src/main.rs index dea28a6..1d56925 100644 --- a/src/main.rs +++ b/src/main.rs @@ -29,7 +29,7 @@ fn main() { // Build icons. let baseball_icon = Icons::Baseball.get_icon_str(); let clock_icon = Icons::Clock.get_icon_str(); - let fahrenheight_icon = Icons::Fahrenheight.get_icon_str(); + let fahrenheit_icon = Icons::Fahrenheit.get_icon_str(); // Build the rows for the table. let mut table_rows: Vec = vec![]; for i in 0..entire_forecast.len() { @@ -46,7 +46,7 @@ fn main() { let row = TableRow { date: yyyy_mm_dd.to_string(), time_of_day: forecast_period.name.clone(), - temp: format!("{}{}", forecast_period.temperature, fahrenheight_icon), + temp: format!("{}{}", forecast_period.temperature, fahrenheit_icon), red_sox: sox_status, forecast: forecast_period.detailed_forecast.to_string(), };