diff options
author | Lars Wirzenius <liw@liw.fi> | 2022-02-26 07:18:46 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2022-03-03 18:54:32 +0200 |
commit | 83b83530c05e23945cfe5a11a2125c4d93d40a93 (patch) | |
tree | 59f2c38cd3e0214c3aea9b8f0b569193925dec25 /src/backup_run.rs | |
parent | dd8ac8901cd15945bce8d1a072abbcbdfe6d5a83 (diff) | |
download | obnam2-83b83530c05e23945cfe5a11a2125c4d93d40a93.tar.gz |
refactor: use FileId instead of raw type
This is clearer and less error prone.
Sponsored-by: author
Diffstat (limited to 'src/backup_run.rs')
-rw-r--r-- | src/backup_run.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/backup_run.rs b/src/backup_run.rs index 0b816bf..464179b 100644 --- a/src/backup_run.rs +++ b/src/backup_run.rs @@ -7,6 +7,7 @@ use crate::chunker::{ChunkerError, FileChunks}; use crate::chunkid::ChunkId; use crate::client::{BackupClient, ClientError}; use crate::config::ClientConfig; +use crate::dbgen::FileId; use crate::error::ObnamError; use crate::fsentry::{FilesystemEntry, FilesystemKind}; use crate::fsiter::{AnnotatedFsEntry, FsIterError, FsIterator}; @@ -84,7 +85,7 @@ struct OneRootBackupOutcome { #[derive(Debug)] pub struct RootsBackupOutcome { /// The number of backed up files. - pub files_count: i64, + pub files_count: FileId, /// The errors encountered while backing up files. pub warnings: Vec<BackupError>, /// CACHEDIR.TAG files that aren't present in in a previous generation. |