Skip to content

Commit

Permalink
♻️ Avoid unwrap when failed to start logging
Browse files Browse the repository at this point in the history
  • Loading branch information
ChanTsune committed Jul 5, 2024
1 parent 00f9312 commit ad58184
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ mod filesystem;

fn main() -> io::Result<()> {
#[cfg(feature = "logging")]
simple_logger::init_with_level(log::Level::Trace).unwrap();
simple_logger::init_with_level(log::Level::Trace).map_err(io::Error::other)?;
command::entry(cli::Cli::parse())
}

0 comments on commit ad58184

Please sign in to comment.