Skip to content

Commit

Permalink
fix check errors (#460)
Browse files Browse the repository at this point in the history
Signed-off-by: Ping Yu <yuping@pingcap.cn>
  • Loading branch information
pingyu authored Aug 12, 2024
1 parent 53e7a29 commit 49f5dba
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/proto.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

pub use protos::*;

#[allow(clippy::doc_lazy_continuation)]
mod protos {
include!("generated/mod.rs");
}
2 changes: 1 addition & 1 deletion src/transaction/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
1 change: 0 additions & 1 deletion src/transaction/requests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -904,7 +904,6 @@ impl Merge<kvrpcpb::UnsafeDestroyRangeResponse> 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;
Expand Down

0 comments on commit 49f5dba

Please sign in to comment.