File tree Expand file tree Collapse file tree 4 files changed +8
-0
lines changed Expand file tree Collapse file tree 4 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,8 @@ use lofty::probe::Probe;
66use std:: path:: Path ;
77
88fn main ( ) {
9+ env_logger:: init ( ) ;
10+
911 let path_str = std:: env:: args ( ) . nth ( 1 ) . expect ( "ERROR: No path specified!" ) ;
1012 let path = Path :: new ( & path_str) ;
1113
Original file line number Diff line number Diff line change @@ -6,6 +6,8 @@ use lofty::probe::Probe;
66use std:: io:: Write ;
77
88fn main ( ) {
9+ env_logger:: init ( ) ;
10+
911 let path = std:: env:: args ( ) . nth ( 1 ) . expect ( "ERROR: No path specified!" ) ;
1012
1113 let tagged_file = Probe :: open ( path. as_str ( ) )
Original file line number Diff line number Diff line change @@ -29,6 +29,8 @@ struct Opt {
2929}
3030
3131fn main ( ) {
32+ env_logger:: init ( ) ;
33+
3234 let opt = Opt :: from_args ( ) ;
3335
3436 let mut tagged_file = Probe :: open ( & opt. path )
Original file line number Diff line number Diff line change @@ -38,6 +38,8 @@ features = ["derive"]
3838optional = true
3939
4040[dev-dependencies ]
41+ # For examples
42+ env_logger = " 0.11.8"
4143# WAV properties validity tests
4244hound = { git = " https://github.com/ruuda/hound.git" , rev = " 02e66effb33683dd6acb92df792683ee46ad6a59" }
4345rusty-fork = " 0.3.0"
You can’t perform that action at this time.
0 commit comments