We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56895c8 commit 24aafd9Copy full SHA for 24aafd9
src/lib.rs
@@ -13,6 +13,7 @@
13
14
// Long and nested future chains can quickly result in large generic types.
15
#![type_length_limit = "16777216"]
16
+#![allow(clippy::redundant_closure)]
17
18
//! TiKV Client for Rust.
19
//!
src/rpc/security.rs
@@ -77,8 +77,8 @@ impl SecurityManager {
77
{
78
info!("connect to rpc server at endpoint: {:?}", addr);
79
let addr = addr
80
- .trim_left_matches("http://")
81
- .trim_left_matches("https://");
+ .trim_start_matches("http://")
+ .trim_start_matches("https://");
82
let cb = ChannelBuilder::new(env)
83
.keepalive_time(Duration::from_secs(10))
84
.keepalive_timeout(Duration::from_secs(3));
0 commit comments