remove lifetime param in storage trait (#5046)

This commit is contained in:
robinsdan
2023-10-17 21:30:50 +08:00
committed by GitHub
parent d3ea66bb79
commit ede8278916
29 changed files with 212 additions and 303 deletions

View File

@ -148,9 +148,9 @@ impl Command {
}
/// Find diffs for a table, then analyzing the result
fn find_diffs<'a, T: Table>(
primary_tx: impl DbTx<'a>,
secondary_tx: impl DbTx<'a>,
fn find_diffs<T: Table>(
primary_tx: impl DbTx,
secondary_tx: impl DbTx,
output_dir: impl AsRef<Path>,
) -> eyre::Result<()>
where
@ -231,9 +231,9 @@ where
/// This diff algorithm is slightly different, it will walk _each_ table, cross-checking for the
/// element in the other table.
fn find_diffs_advanced<'a, T: Table>(
primary_tx: &impl DbTx<'a>,
secondary_tx: &impl DbTx<'a>,
fn find_diffs_advanced<T: Table>(
primary_tx: &impl DbTx,
secondary_tx: &impl DbTx,
) -> eyre::Result<TableDiffResult<T>>
where
T::Value: PartialEq,