File tree Expand file tree Collapse file tree 4 files changed +10
-10
lines changed Expand file tree Collapse file tree 4 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -18,17 +18,17 @@ integration-tests = []
18
18
name = " tikv_client"
19
19
20
20
[dependencies ]
21
+ failure = " 0.1"
21
22
futures = " 0.1"
22
- serde = " 1.0"
23
- serde_derive = " 1.0"
23
+ fxhash = " 0.2"
24
24
grpcio = { version = " 0.4" , features = [ " secure" ] }
25
+ lazy_static = " 0.2.1"
26
+ log = " 0.3.9"
25
27
protobuf = " ~2.0"
28
+ serde = " 1.0"
29
+ serde_derive = " 1.0"
26
30
tokio-core = " 0.1"
27
31
tokio-timer = " 0.2"
28
- fxhash = " 0.2"
29
- lazy_static = " 0.2.1"
30
- log = " 0.3.9"
31
- failure = " 0.1"
32
32
33
33
[dependencies .kvproto ]
34
34
git = " https://github.com/pingcap/kvproto.git"
@@ -40,5 +40,5 @@ default-features = false
40
40
features = [" push" , " process" ]
41
41
42
42
[dev-dependencies ]
43
- tempdir = " 0.3"
44
43
clap = " 2.32"
44
+ tempdir = " 0.3"
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 13
13
14
14
// Long and nested future chains can quickly result in large generic types.
15
15
#![ type_length_limit = "16777216" ]
16
+ #![ allow( clippy:: redundant_closure) ]
16
17
17
18
//! TiKV Client for Rust.
18
19
//!
Original file line number Diff line number Diff line change @@ -77,8 +77,8 @@ impl SecurityManager {
77
77
{
78
78
info ! ( "connect to rpc server at endpoint: {:?}" , addr) ;
79
79
let addr = addr
80
- . trim_left_matches ( "http://" )
81
- . trim_left_matches ( "https://" ) ;
80
+ . trim_start_matches ( "http://" )
81
+ . trim_start_matches ( "https://" ) ;
82
82
let cb = ChannelBuilder :: new ( env)
83
83
. keepalive_time ( Duration :: from_secs ( 10 ) )
84
84
. keepalive_timeout ( Duration :: from_secs ( 3 ) ) ;
You can’t perform that action at this time.
0 commit comments