File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -13,9 +13,10 @@ const RUST_SRC_REPO: Option<&str> = option_env!("RUST_SRC_REPO");
13
13
use std:: path:: Path ;
14
14
15
15
use chrono:: { DateTime , TimeZone , Utc } ;
16
- use failure:: Error ;
16
+ use failure:: { bail , Error } ;
17
17
use git2:: build:: RepoBuilder ;
18
18
use git2:: { Commit as Git2Commit , Repository } ;
19
+ use log:: debug;
19
20
20
21
#[ derive( Debug , Clone , PartialEq ) ]
21
22
pub struct Commit {
Original file line number Diff line number Diff line change 5
5
// http://opensource.org/licenses/MIT>, at your option. This file may not be
6
6
// copied, modified, or distributed except according to those terms.
7
7
8
- #[ macro_use]
9
- extern crate failure;
10
- #[ macro_use]
11
- extern crate log;
12
-
13
-
14
8
use std:: env;
15
9
use std:: ffi:: OsString ;
16
10
use std:: fmt;
@@ -22,8 +16,9 @@ use std::str::FromStr;
22
16
23
17
use chrono:: { Date , Duration , naive, Utc } ;
24
18
use dialoguer:: Select ;
25
- use failure:: Error ;
19
+ use failure:: { bail , format_err , Fail , Error } ;
26
20
use flate2:: read:: GzDecoder ;
21
+ use log:: debug;
27
22
use pbr:: { ProgressBar , Units } ;
28
23
use regex:: Regex ;
29
24
use reqwest:: header:: CONTENT_LENGTH ;
You can’t perform that action at this time.
0 commit comments