summaryrefslogtreecommitdiff
path: root/src/cmd/restore.rs
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2021-08-01 20:34:35 +0300
committerLars Wirzenius <liw@liw.fi>2021-08-01 20:55:04 +0300
commit2bc07b176bcf63f94bf6f1cca0ade2505958a15d (patch)
treee1dcf85cc76051baf44a63c1105ced26935109c2 /src/cmd/restore.rs
parent0835677f33fe8fa89ee96e4c1b45e5711e10b461 (diff)
downloadobnam2-2bc07b176bcf63f94bf6f1cca0ade2505958a15d.tar.gz
refactor: add a type alias for generation ids
This will make it harder to accidentally use a string. Can still be confused with a chunk id. Sponsored-by: author
Diffstat (limited to 'src/cmd/restore.rs')
-rw-r--r--src/cmd/restore.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/restore.rs b/src/cmd/restore.rs
index c770501..8d05481 100644
--- a/src/cmd/restore.rs
+++ b/src/cmd/restore.rs
@@ -40,7 +40,7 @@ impl Restore {
let client = AsyncBackupClient::new(config)?;
let genlist = client.list_generations().await?;
- let gen_id: String = genlist.resolve(&self.gen_id)?;
+ let gen_id = genlist.resolve(&self.gen_id)?;
info!("generation id is {}", gen_id);
let gen = client.fetch_generation(&gen_id, temp.path()).await?;