address clippy & rustdoc warnings

The comment was out of date anyway, State::Live no longer takes a
snapshot_path argument.
This commit is contained in:
Mira Ressel
2023-03-16 15:38:06 +01:00
parent fc5b3f4f1c
commit faaa0c2851
4 changed files with 4 additions and 9 deletions
+1 -1
View File
@@ -406,7 +406,7 @@ impl<BlockHash: Hash, Key: Hash, D: MetaDb> StateDbSync<BlockHash, Key, D> {
}
fn prune(&mut self, commit: &mut CommitSet<Key>) -> Result<(), Error<D::Error>> {
if let (&mut Some(ref mut pruning), &PruningMode::Constrained(ref constraints)) =
if let (&mut Some(ref mut pruning), PruningMode::Constrained(constraints)) =
(&mut self.pruning, &self.mode)
{
loop {