@@ -13,4 +13,4 @@ pub struct CmdConfig {
/// log level
#[arg(value_enum, short, long, default_value = "warn")]
pub level: LevelFilter,
-}
+}
@@ -24,7 +24,7 @@ use crate::errors::*;
pub static mut APPLICATION: Option<Application> = None;
pub fn get_application() -> &'static mut Application {
- unsafe { APPLICATION.as_mut().unwrap()}
+ unsafe { APPLICATION.as_mut().unwrap() }
}
fn main() -> Result<()> {
@@ -7,13 +7,11 @@ pub struct Log;
impl Log {
pub fn init(level: LevelFilter) -> io::Result<()> {
- CombinedLogger::init(vec![
- WriteLogger::new(
- level,
- simplelog::Config::default(),
- File::create("held.log")?,
- ),
- ])
+ CombinedLogger::init(vec![WriteLogger::new(
+ level,
+ simplelog::Config::default(),
+ File::create("held.log")?,
+ )])
.unwrap();
Ok(())
@@ -1,2 +1,2 @@
pub mod line_iterator;
-pub mod log_util;
+pub mod log_util;