From 49f5dba6ad94922a4a90b278ac40842c81e90fe8 Mon Sep 17 00:00:00 2001 From: Ping Yu Date: Mon, 12 Aug 2024 23:20:45 +0800 Subject: [PATCH] fix check errors (#460) Signed-off-by: Ping Yu --- src/proto.rs | 1 + src/transaction/client.rs | 2 +- src/transaction/requests.rs | 1 - 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/proto.rs b/src/proto.rs index 30f699f9..c86a819a 100644 --- a/src/proto.rs +++ b/src/proto.rs @@ -5,6 +5,7 @@ pub use protos::*; +#[allow(clippy::doc_lazy_continuation)] mod protos { include!("generated/mod.rs"); } diff --git a/src/transaction/client.rs b/src/transaction/client.rs index 16d5c4f6..a9bb2269 100644 --- a/src/transaction/client.rs +++ b/src/transaction/client.rs @@ -42,7 +42,7 @@ const SCAN_LOCK_BATCH_SIZE: u32 = 1024; /// - `gc`: trigger a GC process which clears stale data in the cluster. /// - `current_timestamp`: get the current `Timestamp` from PD. /// - `snapshot`: get a [`Snapshot`] of the database at a specified timestamp. -/// A `Snapshot` is a read-only transaction. +/// A `Snapshot` is a read-only transaction. /// /// The returned results of transactional requests are [`Future`](std::future::Future)s that must be /// awaited to execute. diff --git a/src/transaction/requests.rs b/src/transaction/requests.rs index 231c9e5a..6a5538d9 100644 --- a/src/transaction/requests.rs +++ b/src/transaction/requests.rs @@ -904,7 +904,6 @@ impl Merge for Collect { } #[cfg(test)] -#[cfg_attr(feature = "protobuf-codec", allow(clippy::useless_conversion))] mod tests { use crate::common::Error::PessimisticLockError; use crate::common::Error::ResolveLockError;