summaryrefslogtreecommitdiff
path: root/src/client.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/client.rs')
-rw-r--r--src/client.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client.rs b/src/client.rs
index 1b507d3..d075f43 100644
--- a/src/client.rs
+++ b/src/client.rs
@@ -64,16 +64,16 @@ impl BackupClient {
pub fn upload_filesystem_entry(
&self,
- e: FilesystemEntry,
+ e: &FilesystemEntry,
size: usize,
- ) -> anyhow::Result<(FilesystemEntry, Vec<ChunkId>)> {
+ ) -> anyhow::Result<Vec<ChunkId>> {
debug!("entry: {:?}", e);
let ids = match e.kind() {
FilesystemKind::Regular => self.read_file(e.pathbuf(), size)?,
FilesystemKind::Directory => vec![],
FilesystemKind::Symlink => vec![],
};
- Ok((e, ids))
+ Ok(ids)
}
pub fn upload_generation(&self, filename: &Path, size: usize) -> anyhow::Result<ChunkId> {