File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed
Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -15,11 +15,11 @@ name = "rust-semverver"
1515path = " src/bin/rust_semverver.rs"
1616
1717[dependencies ]
18- cargo = " ^0.20.0 "
19- crates-io = " ^0.9.0 "
20- env_logger = " ^0.4.0 "
21- log = " ^0.3.0 "
22- semver = " ^0.7.0 "
18+ cargo = " 0.24 "
19+ crates-io = " 0.13 "
20+ env_logger = " 0.5 "
21+ log = " 0.4 "
22+ semver = " 0.9 "
2323
2424[dev-dependencies ]
25- quickcheck = " ^0.4.1 "
25+ quickcheck = " 0.6 "
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ impl<'a> SourceInfo<'a> {
6262 /// Construct a new source info for `crates.io`.
6363 fn new ( config : & ' a Config ) -> CargoResult < SourceInfo < ' a > > {
6464 let source_id = SourceId :: crates_io ( config) ?;
65- let source = source_id. load ( config) ;
65+ let source = source_id. load ( config) ? ;
6666
6767 debug ! ( "source id loaded: {:?}" , source_id) ;
6868
@@ -257,7 +257,7 @@ fn main() {
257257 exit_with_error ( CliError :: new ( e, 1 ) , & mut config. shell ( ) ) ;
258258 }
259259
260- if env_logger:: init ( ) . is_err ( ) {
260+ if env_logger:: try_init ( ) . is_err ( ) {
261261 eprintln ! ( "ERROR: could not initialize logger" ) ;
262262 }
263263
Original file line number Diff line number Diff line change @@ -153,7 +153,7 @@ impl<'a> CompilerCalls<'a> for SemVerVerCompilerCalls {
153153/// Find the sysroot before passing our args to the compiler driver, after registering our custom
154154/// compiler driver.
155155fn main ( ) {
156- if env_logger:: init ( ) . is_err ( ) {
156+ if env_logger:: try_init ( ) . is_err ( ) {
157157 eprintln ! ( "ERROR: could not initialize logger" ) ;
158158 }
159159
You can’t perform that action at this time.
0 commit comments