Use AsRef<Path> instead of PathBuf for parameters (#23560)

This commit is contained in:
Brooks Prumo
2022-03-09 16:08:33 -06:00
committed by GitHub
parent fb974489a5
commit 9bbccbe27c
4 changed files with 10 additions and 12 deletions

View File

@ -175,7 +175,7 @@ mod tests {
let check_hash_calculation = false;
let full_snapshot_archive_path = snapshot_utils::build_full_snapshot_archive_path(
snapshot_archives_dir.to_path_buf(),
snapshot_archives_dir,
old_last_bank.slot(),
&old_last_bank.get_accounts_hash(),
ArchiveFormat::TarBzip2,
@ -461,7 +461,7 @@ mod tests {
fs_extra::dir::copy(&last_snapshot_path, &saved_snapshots_dir, &options).unwrap();
saved_archive_path = Some(snapshot_utils::build_full_snapshot_archive_path(
snapshot_archives_dir.to_path_buf(),
snapshot_archives_dir,
slot,
&accounts_hash,
ArchiveFormat::TarBzip2,