Skip to content

Commit b94de7a

Browse files
committed
Remove unused extern crate statements
1 parent d600b39 commit b94de7a

2 files changed

Lines changed: 3 additions & 15 deletions

File tree

diesel_cli/src/config.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
use clap::ArgMatches;
2+
use serde::Deserialize;
23
use std::env;
34
use std::error::Error;
45
use std::fs;

diesel_cli/src/main.rs

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -14,26 +14,13 @@
1414
)]
1515
#![cfg_attr(test, allow(clippy::result_unwrap_used))]
1616

17-
extern crate chrono;
18-
#[macro_use]
19-
extern crate clap;
2017
#[macro_use]
2118
extern crate diesel;
22-
extern crate dotenv;
23-
extern crate heck;
24-
extern crate migrations_internals;
2519
#[macro_use]
26-
extern crate serde;
27-
extern crate tempfile;
28-
extern crate toml;
29-
#[cfg(feature = "url")]
30-
extern crate url;
20+
extern crate clap;
3121

3222
mod config;
3323

34-
#[cfg(feature = "barrel-migrations")]
35-
extern crate barrel;
36-
3724
mod database_error;
3825
#[macro_use]
3926
mod database;
@@ -59,7 +46,7 @@ use crate::migrations::MigrationError;
5946
use migrations_internals::TIMESTAMP_FORMAT;
6047

6148
fn main() {
62-
use self::dotenv::dotenv;
49+
use dotenv::dotenv;
6350
dotenv().ok();
6451

6552
let matches = cli::build_cli().get_matches();

0 commit comments

Comments
 (0)