Skip to content

Commit f9ddd4a

Browse files
committed
Remove some glob imports
Signed-off-by: Nick Cameron <nrc@ncameron.org>
1 parent 56bddc2 commit f9ddd4a

File tree

8 files changed

+9
-11
lines changed

8 files changed

+9
-11
lines changed

src/lib.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,13 @@ pub mod raw;
8282
mod rpc;
8383
pub mod transaction;
8484

85+
#[macro_use]
86+
extern crate lazy_static;
87+
#[macro_use]
88+
extern crate log;
89+
#[macro_use]
90+
extern crate prometheus;
91+
8592
#[doc(inline)]
8693
pub use crate::config::Config;
8794
#[doc(inline)]

src/rpc/client.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ use derive_new::new;
1414
use futures::prelude::*;
1515
use grpcio::{EnvBuilder, Environment};
1616
use kvproto::kvrpcpb;
17-
use log::*;
1817

1918
use crate::{
2019
compat::{loop_fn, Loop},

src/rpc/pd/context.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Copyright 2018 TiKV Project Authors. Licensed under Apache-2.0.
22

3-
use lazy_static::*;
4-
use prometheus::*;
3+
use prometheus::{Histogram, HistogramVec, IntCounterVec};
54

65
use crate::rpc::context::RequestContext;
76

src/rpc/pd/leader.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ use futures::compat::{Compat01As03, Compat01As03Sink};
1515
use futures::prelude::*;
1616
use grpcio::{CallOption, Environment, WriteFlags};
1717
use kvproto::pdpb;
18-
use log::*;
1918
use tokio_core::reactor::{Core, Handle as TokioHandle};
2019

2120
use crate::{

src/rpc/pd/request.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ use std::{
88

99
use futures::compat::Compat01As03;
1010
use futures::prelude::*;
11-
use log::*;
1211
use tokio_timer::timer::Handle;
1312

1413
use crate::{

src/rpc/security.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ use std::{
99
};
1010

1111
use grpcio::{Channel, ChannelBuilder, ChannelCredentialsBuilder, Environment};
12-
use lazy_static::*;
13-
use log::*;
1412
use regex::Regex;
1513

1614
use crate::Result;

src/rpc/tikv/context.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Copyright 2018 TiKV Project Authors. Licensed under Apache-2.0.
22

3-
use lazy_static::*;
4-
use prometheus::*;
3+
use prometheus::{HistogramVec, IntCounterVec};
54

65
pub use crate::rpc::context::RequestContext;
76

src/rpc/util.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
// Copyright 2018 TiKV Project Authors. Licensed under Apache-2.0.
22

33
use std::{sync::mpsc, thread, time::Duration};
4-
5-
use lazy_static::*;
64
use tokio_timer::{self, timer::Handle};
75

86
macro_rules! internal_err {

0 commit comments

Comments
 (0)