From d6dd52b520a93c27ecc68f22e3664bfcd6a66de6 Mon Sep 17 00:00:00 2001 From: Alexander Weiss Date: Mon, 9 May 2022 23:45:40 +0200 Subject: [PATCH] Fix some ProgressBars --- src/backend/decrypt.rs | 1 - src/index/mod.rs | 2 +- src/repo/snapshotfile.rs | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/backend/decrypt.rs b/src/backend/decrypt.rs index 517ff46..d789814 100644 --- a/src/backend/decrypt.rs +++ b/src/backend/decrypt.rs @@ -55,7 +55,6 @@ pub trait DecryptReadBackend: ReadBackend { }) }) .collect(); - Ok(stream) } } diff --git a/src/index/mod.rs b/src/index/mod.rs index 73a49dd..8b13055 100644 --- a/src/index/mod.rs +++ b/src/index/mod.rs @@ -103,7 +103,7 @@ impl IndexBackend { while let Some(index) = stream.next().await { collector.extend(index.packs); } - p.finish_with_message("done"); + p.finish(); Ok(Self::new_from_index(be, collector.into_index())) } diff --git a/src/repo/snapshotfile.rs b/src/repo/snapshotfile.rs index 8be5cc0..ca1c826 100644 --- a/src/repo/snapshotfile.rs +++ b/src/repo/snapshotfile.rs @@ -205,7 +205,7 @@ impl SnapshotFile { } } } - p.finish_with_message("done."); + p.finish(); latest.ok_or_else(|| anyhow!("no snapshots found")) }