Skip to content

Commit

Permalink
main: Fix simple_logger instantiation
Browse files Browse the repository at this point in the history
Signed-off-by: Kristofer Rye <[email protected]>
  • Loading branch information
rye committed Jan 31, 2021
1 parent 9b6f70d commit b0ebb7e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
use lopdf::{Document, Object, ObjectId};

#[cfg(feature = "simple_logger")]
use simple_logger::SimpleLogger;

#[allow(unused)]
use log::{debug, error, info, log, trace, warn};

Expand All @@ -12,7 +15,7 @@ use sked::pdf::Pdf;

fn main() {
#[cfg(feature = "simple_logger")]
simple_logger::init().expect("couldn't init simple_logger");
SimpleLogger::new().init().expect("couldn't init simple_logger");

let file = env::args().nth(1).unwrap();
println!("Loading from {}...", file);
Expand Down

0 comments on commit b0ebb7e

Please sign in to comment.