Skip to content

Commit

Permalink
Fix deprecated way of initializing SimpleLogger (andialbrecht#275)
Browse files Browse the repository at this point in the history
* Use builder pattern instead as suggested
  • Loading branch information
Dandandan committed Sep 7, 2020
1 parent cf7263c commit 2f71324
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@
/// Run with `cargo run --example cli`
use std::fs;

use simple_logger::SimpleLogger;
use sqlparser::dialect::*;
use sqlparser::parser::Parser;

fn main() {
simple_logger::init().unwrap();
SimpleLogger::new().init().unwrap();

let filename = std::env::args().nth(1).expect(
r#"
Expand Down

0 comments on commit 2f71324

Please sign in to comment.