From 6a1fa8f379452630b1be1159afb1a445c2ae0583 Mon Sep 17 00:00:00 2001 From: shilangyu Date: Sat, 29 Feb 2020 12:54:57 +0100 Subject: [PATCH] rust fmt --- src/main.rs | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/main.rs b/src/main.rs index bef966de..ee4ff7cf 100644 --- a/src/main.rs +++ b/src/main.rs @@ -18,8 +18,7 @@ use crossterm::{ }, execute, style::Print, - terminal::LeaveAlternateScreen, - terminal::{disable_raw_mode, enable_raw_mode, EnterAlternateScreen}, + terminal::{disable_raw_mode, enable_raw_mode, EnterAlternateScreen, LeaveAlternateScreen}, }; use std::{ @@ -425,10 +424,7 @@ fn create_logger() -> error::Result<()> { } fn create_config(flag_config_location: Option<&str>) -> error::Result { - use std::{ - ffi::OsString, - fs - }; + use std::{ffi::OsString, fs}; let config_path = if let Some(conf_loc) = flag_config_location { OsString::from(conf_loc) } else if cfg!(target_os = "windows") { @@ -512,7 +508,9 @@ fn get_temperature_option( } _ => { return Err(BottomError::ConfigError( - "Invalid temperature type. Please have the value be of the form ".to_string() + "Invalid temperature type. Please have the value be of the form \ + " + .to_string(), )); } }