Skip to content

Commit 70006ae

Browse files
committed
fix clippy
Signed-off-by: haojinming <jinming.hao@pingcap.com>
1 parent 28e0fae commit 70006ae

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/request/plan.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ impl<P: Plan, PdC: PdClient> Clone for CleanupLocks<P, PdC> {
502502
logger: self.logger.clone(),
503503
inner: self.inner.clone(),
504504
ctx: self.ctx.clone(),
505-
options: self.options.clone(),
505+
options: self.options,
506506
store: None,
507507
pd_client: self.pd_client.clone(),
508508
backoff: self.backoff.clone(),

src/transaction/lock.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ pub struct ResolveLocksContext {
149149
pub(crate) clean_regions: Arc<RwLock<HashMap<u64, HashSet<RegionVerId>>>>,
150150
}
151151

152-
#[derive(Clone, Debug)]
152+
#[derive(Clone, Copy, Debug)]
153153
pub struct ResolveLocksOptions {
154154
pub async_commit_only: bool,
155155
pub batch_size: u32,

tests/common/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ pub async fn init() -> Result<()> {
5353
clear_tikv().await;
5454
let region_cnt = ctl::get_region_count().await?;
5555
// print log for debug convenience
56-
println!("init finish with {} regions", region_cnt);
56+
println!("init finish with {region_cnt} regions");
5757
Ok(())
5858
}
5959

0 commit comments

Comments
 (0)