Skip to content

Commit 24aafd9

Browse files
committed
Address warnings
Signed-off-by: Nick Cameron <[email protected]>
1 parent 56895c8 commit 24aafd9

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
// Long and nested future chains can quickly result in large generic types.
1515
#![type_length_limit = "16777216"]
16+
#![allow(clippy::redundant_closure)]
1617

1718
//! TiKV Client for Rust.
1819
//!

src/rpc/security.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ impl SecurityManager {
7777
{
7878
info!("connect to rpc server at endpoint: {:?}", addr);
7979
let addr = addr
80-
.trim_left_matches("http://")
81-
.trim_left_matches("https://");
80+
.trim_start_matches("http://")
81+
.trim_start_matches("https://");
8282
let cb = ChannelBuilder::new(env)
8383
.keepalive_time(Duration::from_secs(10))
8484
.keepalive_timeout(Duration::from_secs(3));

0 commit comments

Comments
 (0)