fix for new toolchain

Signed-off-by: Ping Yu <yuping@pingcap.com>
This commit is contained in:
Ping Yu 2025-03-16 10:56:39 +08:00
parent 9ba978dfcf
commit 1f99574264
3 changed files with 3 additions and 4 deletions

View File

@ -21,9 +21,7 @@ generate:
check: generate
cargo check --all --all-targets --features "${ALL_FEATURES}"
cargo fmt -- --check
cargo clippy --all-targets --features "${ALL_FEATURES}" -- \
-D clippy::all \
-A clippy::doc_lazy_continuation
cargo clippy --all-targets --features "${ALL_FEATURES}" -- -D clippy::all
unit-test: generate
cargo nextest run --all --no-default-features

View File

@ -2,6 +2,7 @@
#![allow(clippy::large_enum_variant)]
#![allow(clippy::enum_variant_names)]
#![allow(clippy::doc_lazy_continuation)]
pub use protos::*;

View File

@ -40,7 +40,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.