Skip to content

Commit c51a1a6

Browse files
committed
fix warning
Signed-off-by: Andy Lok <andylokandy@hotmail.com>
1 parent 3928cf2 commit c51a1a6

File tree

3 files changed

+4
-9
lines changed

3 files changed

+4
-9
lines changed

Cargo.lock

Lines changed: 0 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,4 @@ tikv-client = { git = "https://github.com/tikv/client-rust.git", rev = "8875c96"
1818

1919
[patch.crates-io]
2020
raft-proto = { git = "https://github.com/tikv/raft-rs", rev="95c532612ee6a83591fce9a8b51d6afe87b58835"}
21-
protobuf-codegen = { git = "https://github.com/pingcap/rust-protobuf", rev="82b49fea7e696fd647b5aca0a6c6ec944eab3189" }
2221
protobuf = { git = "https://github.com/pingcap/rust-protobuf", rev="82b49fea7e696fd647b5aca0a6c6ec944eab3189" }

src/lib.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,8 @@ mod ffi {
8787
client: &TransactionClient,
8888
) -> Result<Box<Transaction>>;
8989

90-
fn transaction_get(transaction: &mut Transaction, key: &CxxString) -> Result<OptionalValue>;
90+
fn transaction_get(transaction: &mut Transaction, key: &CxxString)
91+
-> Result<OptionalValue>;
9192

9293
fn transaction_get_for_update(
9394
transaction: &mut Transaction,
@@ -160,7 +161,7 @@ fn raw_client_new(pd_endpoints: &CxxVector<CxxString>) -> Result<Box<RawKVClient
160161

161162
Ok(Box::new(RawKVClient {
162163
rt: runtime,
163-
inner: block_on(tikv_client::RawClient::new(pd_endpoints,None))?,
164+
inner: block_on(tikv_client::RawClient::new(pd_endpoints, None))?,
164165
}))
165166
}
166167

@@ -173,7 +174,7 @@ fn transaction_client_new(pd_endpoints: &CxxVector<CxxString>) -> Result<Box<Tra
173174
.collect::<std::result::Result<Vec<_>, _>>()?;
174175

175176
Ok(Box::new(TransactionClient {
176-
inner: block_on(tikv_client::TransactionClient::new(pd_endpoints,None))?,
177+
inner: block_on(tikv_client::TransactionClient::new(pd_endpoints, None))?,
177178
}))
178179
}
179180

0 commit comments

Comments
 (0)