summaryrefslogtreecommitdiff
path: root/src/cmd/show_gen.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/show_gen.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/show_gen.rs')
-rw-r--r--src/cmd/show_gen.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/show_gen.rs b/src/cmd/show_gen.rs
index 8df26c2..fb7e1bd 100644
--- a/src/cmd/show_gen.rs
+++ b/src/cmd/show_gen.rs
@@ -24,7 +24,7 @@ impl ShowGeneration {
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)?;
let gen = client.fetch_generation(&gen_id, temp.path()).await?;
let mut files = gen.files()?;
let mut files = files.iter()?;