summaryrefslogtreecommitdiff
path: root/src/cmd/backup.rs
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2020-12-27 15:08:50 +0200
committerLars Wirzenius <liw@liw.fi>2020-12-27 15:08:50 +0200
commit619b0471182daf42615558a4449b3156541944f8 (patch)
tree72cd3cd0a84a4e07e4da3af44764cc39fd5ae356 /src/cmd/backup.rs
parentbbde1bfd90edaa49463d7c3950ddcaa834e9ce02 (diff)
downloadobnam2-619b0471182daf42615558a4449b3156541944f8.tar.gz
refactor: rename Generation to NascentGeneration
New name is more descriptive.
Diffstat (limited to 'src/cmd/backup.rs')
-rw-r--r--src/cmd/backup.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/backup.rs b/src/cmd/backup.rs
index 2a294f5..c9b7fc5 100644
--- a/src/cmd/backup.rs
+++ b/src/cmd/backup.rs
@@ -1,6 +1,6 @@
use crate::client::{BackupClient, ClientConfig};
use crate::fsiter::FsIterator;
-use crate::generation::Generation;
+use crate::generation::NascentGeneration;
use indicatif::{ProgressBar, ProgressStyle};
use log::info;
use tempfile::NamedTempFile;
@@ -22,7 +22,7 @@ pub fn backup(config: &ClientConfig, buffer_size: usize) -> anyhow::Result<()> {
// Create the SQLite database using the named temporary file.
// The fetching is in its own block so that the file handles
// get closed and data flushed to disk.
- let mut gen = Generation::create(&dbname)?;
+ let mut gen = NascentGeneration::create(&dbname)?;
let progress = create_progress_bar(GUESS_FILE_COUNT, true);
progress.enable_steady_tick(100);
gen.insert_iter(FsIterator::new(&config.root).map(|entry| {