Skip to content

Commit 385c415

Browse files
committed
transition #[macro_use] attributes to use statements
1 parent c42e7b9 commit 385c415

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

src/git.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@ const RUST_SRC_REPO: Option<&str> = option_env!("RUST_SRC_REPO");
1313
use std::path::Path;
1414

1515
use chrono::{DateTime, TimeZone, Utc};
16-
use failure::Error;
16+
use failure::{bail, Error};
1717
use git2::build::RepoBuilder;
1818
use git2::{Commit as Git2Commit, Repository};
19+
use log::debug;
1920

2021
#[derive(Debug, Clone, PartialEq)]
2122
pub struct Commit {

src/main.rs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,6 @@
55
// http://opensource.org/licenses/MIT>, at your option. This file may not be
66
// copied, modified, or distributed except according to those terms.
77

8-
#[macro_use]
9-
extern crate failure;
10-
#[macro_use]
11-
extern crate log;
12-
13-
148
use std::env;
159
use std::ffi::OsString;
1610
use std::fmt;
@@ -22,8 +16,9 @@ use std::str::FromStr;
2216

2317
use chrono::{Date, Duration, naive, Utc};
2418
use dialoguer::Select;
25-
use failure::Error;
19+
use failure::{bail, format_err, Fail, Error};
2620
use flate2::read::GzDecoder;
21+
use log::debug;
2722
use pbr::{ProgressBar, Units};
2823
use regex::Regex;
2924
use reqwest::header::CONTENT_LENGTH;

0 commit comments

Comments
 (0)