Skip to content

Commit 2f71324

Browse files
authored
Fix deprecated way of initializing SimpleLogger (#275)
* Use builder pattern instead as suggested
1 parent cf7263c commit 2f71324

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/cli.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@
1616
/// Run with `cargo run --example cli`
1717
use std::fs;
1818

19+
use simple_logger::SimpleLogger;
1920
use sqlparser::dialect::*;
2021
use sqlparser::parser::Parser;
21-
2222
fn main() {
23-
simple_logger::init().unwrap();
23+
SimpleLogger::new().init().unwrap();
2424

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

0 commit comments

Comments
 (0)