diff options
author | Lars Wirzenius <liw@liw.fi> | 2020-12-27 15:08:50 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2020-12-27 15:08:50 +0200 |
commit | 619b0471182daf42615558a4449b3156541944f8 (patch) | |
tree | 72cd3cd0a84a4e07e4da3af44764cc39fd5ae356 /src/cmd/restore.rs | |
parent | bbde1bfd90edaa49463d7c3950ddcaa834e9ce02 (diff) | |
download | obnam2-619b0471182daf42615558a4449b3156541944f8.tar.gz |
refactor: rename Generation to NascentGeneration
New name is more descriptive.
Diffstat (limited to 'src/cmd/restore.rs')
-rw-r--r-- | src/cmd/restore.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cmd/restore.rs b/src/cmd/restore.rs index da654fd..dd7ed41 100644 --- a/src/cmd/restore.rs +++ b/src/cmd/restore.rs @@ -1,7 +1,7 @@ use crate::client::BackupClient; use crate::client::ClientConfig; use crate::fsentry::{FilesystemEntry, FilesystemKind}; -use crate::generation::Generation; +use crate::generation::NascentGeneration; use indicatif::{ProgressBar, ProgressStyle}; use libc::{fchmod, futimens, timespec}; use log::{debug, error, info}; @@ -37,7 +37,7 @@ pub fn restore(config: &ClientConfig, gen_id: &str, to: &Path) -> anyhow::Result } info!("downloaded generation to {}", dbname.display()); - let gen = Generation::open(&dbname)?; + let gen = NascentGeneration::open(&dbname)?; info!("restore file count: {}", gen.file_count()); let progress = create_progress_bar(gen.file_count(), true); for (fileid, entry) in gen.files()? { @@ -74,7 +74,7 @@ struct Opt { fn restore_generation( client: &BackupClient, - gen: &Generation, + gen: &NascentGeneration, fileid: u64, entry: &FilesystemEntry, to: &Path, @@ -123,7 +123,7 @@ fn restored_path(entry: &FilesystemEntry, to: &Path) -> anyhow::Result<PathBuf> fn restore_regular( client: &BackupClient, - gen: &Generation, + gen: &NascentGeneration, path: &Path, fileid: u64, entry: &FilesystemEntry, |