Skip to content

Commit

Permalink
Makes Clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
Tpt committed Jan 30, 2023
1 parent e9777bc commit 6f973fa
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/column.rs
Original file line number Diff line number Diff line change
Expand Up @@ -409,10 +409,10 @@ impl HashColumn {
self.write_reindex_plan_locked(tables, reindex, key, address, log)
}

fn write_reindex_plan_locked<'a, 'b>(
fn write_reindex_plan_locked(
&self,
mut tables: RwLockUpgradableReadGuard<'a, Tables>,
mut reindex: RwLockUpgradableReadGuard<'b, Reindex>,
mut tables: RwLockUpgradableReadGuard<'_, Tables>,
mut reindex: RwLockUpgradableReadGuard<'_, Reindex>,
key: &Key,
address: Address,
log: &mut LogWriter,
Expand Down Expand Up @@ -458,10 +458,10 @@ impl HashColumn {
Ok(None)
}

fn contains_partial_key_with_address<'a>(
fn contains_partial_key_with_address(
key: &Key,
address: Address,
index: &'a IndexTable,
index: &IndexTable,
log: &LogWriter,
) -> Result<bool> {
let (mut existing_entry, mut sub_index) = index.get(key, 0, log)?;
Expand Down Expand Up @@ -1115,7 +1115,7 @@ impl Column {
}
}

#[cfg(test)]
#[cfg(all(test, feature = "loom"))]
pub fn index_bits(&self) -> Option<u8> {
match self {
Column::Hash(column) => Some(column.tables.read().index.id.index_bits()),
Expand Down

0 comments on commit 6f973fa

Please sign in to comment.