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 committed 2023-03-20 16:35:53 +01:00
1 parent fc5b3f4f1c
commit faaa0c2851
4 files changed
+4 -9

No files matched your search

+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 {