fix clippy

Signed-off-by: haojinming <jinming.hao@pingcap.com>
This commit is contained in:
haojinming 2023-01-19 14:25:04 +08:00
parent 28e0fae819
commit 70006aee1d
3 changed files with 3 additions and 3 deletions

View File

@ -502,7 +502,7 @@ impl<P: Plan, PdC: PdClient> Clone for CleanupLocks<P, PdC> {
logger: self.logger.clone(), logger: self.logger.clone(),
inner: self.inner.clone(), inner: self.inner.clone(),
ctx: self.ctx.clone(), ctx: self.ctx.clone(),
options: self.options.clone(), options: self.options,
store: None, store: None,
pd_client: self.pd_client.clone(), pd_client: self.pd_client.clone(),
backoff: self.backoff.clone(), backoff: self.backoff.clone(),

View File

@ -149,7 +149,7 @@ pub struct ResolveLocksContext {
pub(crate) clean_regions: Arc<RwLock<HashMap<u64, HashSet<RegionVerId>>>>, pub(crate) clean_regions: Arc<RwLock<HashMap<u64, HashSet<RegionVerId>>>>,
} }
#[derive(Clone, Debug)] #[derive(Clone, Copy, Debug)]
pub struct ResolveLocksOptions { pub struct ResolveLocksOptions {
pub async_commit_only: bool, pub async_commit_only: bool,
pub batch_size: u32, pub batch_size: u32,

View File

@ -53,7 +53,7 @@ pub async fn init() -> Result<()> {
clear_tikv().await; clear_tikv().await;
let region_cnt = ctl::get_region_count().await?; let region_cnt = ctl::get_region_count().await?;
// print log for debug convenience // print log for debug convenience
println!("init finish with {} regions", region_cnt); println!("init finish with {region_cnt} regions");
Ok(()) Ok(())
} }