Fix deprecated way of initializing SimpleLogger (#275)

* Use builder pattern instead as suggested
This commit is contained in:
Daniël Heres 2020-09-07 09:34:27 +02:00 committed by GitHub
parent cf7263c294
commit 2f71324c33
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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#"