Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.

Commit

Permalink
Use more verbose code to avoid any #[allow(...)]s
Browse files Browse the repository at this point in the history
  • Loading branch information
ryoqun committed Apr 26, 2023
1 parent 4b24614 commit a867a1d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions core/tests/snapshots.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@ struct SnapshotTestConfig {
full_snapshot_archives_dir: TempDir,
bank_snapshots_dir: TempDir,
accounts_dir: PathBuf,
// keep TempDir::drop from running to retain that dir for the duration of test
#[allow(dead_code)]
accounts_tmp_dir: TempDir,
// as the underscore prefix indicates, this isn't explictly used; but it's needed to keep
// TempDir::drop from running to retain that dir for the duration of test
_accounts_tmp_dir: TempDir,
}

impl SnapshotTestConfig {
Expand Down Expand Up @@ -130,7 +130,7 @@ impl SnapshotTestConfig {
full_snapshot_archives_dir,
bank_snapshots_dir,
accounts_dir,
accounts_tmp_dir,
_accounts_tmp_dir: accounts_tmp_dir,
}
}
}
Expand Down

0 comments on commit a867a1d

Please sign in to comment.