Skip to content

Commit 49f5dba

Browse files
authored
fix check errors (#460)
Signed-off-by: Ping Yu <yuping@pingcap.cn>
1 parent 53e7a29 commit 49f5dba

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

src/proto.rs

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

66
pub use protos::*;
77

8+
#[allow(clippy::doc_lazy_continuation)]
89
mod protos {
910
include!("generated/mod.rs");
1011
}

src/transaction/client.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ const SCAN_LOCK_BATCH_SIZE: u32 = 1024;
4242
/// - `gc`: trigger a GC process which clears stale data in the cluster.
4343
/// - `current_timestamp`: get the current `Timestamp` from PD.
4444
/// - `snapshot`: get a [`Snapshot`] of the database at a specified timestamp.
45-
/// A `Snapshot` is a read-only transaction.
45+
/// A `Snapshot` is a read-only transaction.
4646
///
4747
/// The returned results of transactional requests are [`Future`](std::future::Future)s that must be
4848
/// awaited to execute.

src/transaction/requests.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -904,7 +904,6 @@ impl Merge<kvrpcpb::UnsafeDestroyRangeResponse> for Collect {
904904
}
905905

906906
#[cfg(test)]
907-
#[cfg_attr(feature = "protobuf-codec", allow(clippy::useless_conversion))]
908907
mod tests {
909908
use crate::common::Error::PessimisticLockError;
910909
use crate::common::Error::ResolveLockError;

0 commit comments

Comments
 (0)