Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Commit 2c9be44

Browse files
author
Mira Ressel
committed
address clippy & rustdoc warnings
The comment was out of date anyway, State::Live no longer takes a snapshot_path argument.
1 parent 0943b5f commit 2c9be44

File tree

2 files changed

+1
-3
lines changed
  • client/state-db/src
  • utils/frame/try-runtime/cli/src

2 files changed

+1
-3
lines changed

client/state-db/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ impl<BlockHash: Hash, Key: Hash, D: MetaDb> StateDbSync<BlockHash, Key, D> {
406406
}
407407

408408
fn prune(&mut self, commit: &mut CommitSet<Key>) -> Result<(), Error<D::Error>> {
409-
if let (&mut Some(ref mut pruning), &PruningMode::Constrained(ref constraints)) =
409+
if let (&mut Some(ref mut pruning), PruningMode::Constrained(constraints)) =
410410
(&mut self.pruning, &self.mode)
411411
{
412412
loop {

utils/frame/try-runtime/cli/src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -599,8 +599,6 @@ pub struct LiveState {
599599
#[derive(Debug, Clone, clap::Subcommand)]
600600
pub enum State {
601601
/// Use a state snapshot as the source of runtime state.
602-
///
603-
/// This can be crated by passing a value to [`State::Live::snapshot_path`].
604602
Snap {
605603
#[arg(short, long)]
606604
snapshot_path: PathBuf,

0 commit comments

Comments
 (0)