summaryrefslogtreecommitdiff
path: root/src/generation.rs
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2021-01-05 12:54:53 +0200
committerLars Wirzenius <liw@liw.fi>2021-01-05 14:05:37 +0200
commit8a42fc1c9dc3da6936fe8e1d0d16fbe8a60ec520 (patch)
tree7c2d38852e6f1eec5c357b2304a04dc332b8d953 /src/generation.rs
parent678e65c57ae983ef66d16e92965814b0f3f0d73f (diff)
downloadobnam2-8a42fc1c9dc3da6936fe8e1d0d16fbe8a60ec520.tar.gz
refactor: move policy on whether to back up a file into a module
This commit also splits up the src/cmd/backup.rs module into other, smaller, more cohesive modules that are easier to understand and use.
Diffstat (limited to 'src/generation.rs')
-rw-r--r--src/generation.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/generation.rs b/src/generation.rs
index d445a00..5bf749f 100644
--- a/src/generation.rs
+++ b/src/generation.rs
@@ -1,5 +1,5 @@
+use crate::backup_reason::Reason;
use crate::chunkid::ChunkId;
-use crate::cmd::Reason;
use crate::fsentry::FilesystemEntry;
use rusqlite::Connection;
use std::path::Path;
@@ -142,8 +142,8 @@ impl LocalGeneration {
mod sql {
use super::FileId;
+ use crate::backup_reason::Reason;
use crate::chunkid::ChunkId;
- use crate::cmd::Reason;
use crate::error::ObnamError;
use crate::fsentry::FilesystemEntry;
use rusqlite::{params, Connection, OpenFlags, Row, Transaction};