Skip to content

Commit b91731e

Browse files
author
Andika Demas Riyandi
committedJan 27, 2021
remove extern crate from lib.rs

File tree

2 files changed

+2
-12
lines changed

2 files changed

+2
-12
lines changed
 

‎src/command/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ mod init;
55

66
use self::init::init_prjfmt;
77
use std::path::PathBuf;
8+
use structopt::StructOpt;
89

910
use log::info;
1011

‎src/lib.rs

+1-12
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,6 @@
22
33
#![deny(missing_docs)]
44

5-
extern crate anyhow;
6-
extern crate console;
7-
extern crate glob;
8-
9-
#[macro_use]
10-
extern crate structopt;
11-
extern crate hex;
12-
extern crate log;
13-
extern crate serde;
14-
extern crate sha1;
15-
extern crate toml;
16-
175
pub mod command;
186
pub mod customlog;
197
pub mod emoji;
@@ -24,6 +12,7 @@ use command::run_prjfmt_cli;
2412
use formatters::tool::run_prjfmt;
2513
use std::env;
2614
use std::path::{Path, PathBuf};
15+
use structopt::StructOpt;
2716

2817
use customlog::{CustomLogOutput, LogLevel};
2918
use xshell::cmd;

0 commit comments

Comments
 (0)
Please sign in to comment.