Skip to content

Commit

Permalink
Fix: progress bar style when emptying trash
Browse files Browse the repository at this point in the history
  • Loading branch information
ClementNerma committed Sep 17, 2024
1 parent 206867b commit 9898cd2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "trasher"
version = "4.0.0"
version = "4.0.1"
authors = ["Clément Nerma <[email protected]>"]
edition = "2021"
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion src/actions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ pub fn empty(config: &Config) -> Result<()> {
let pbr = ProgressBar::new(items.len().try_into().unwrap());

pbr.set_style(ProgressStyle::default_bar()
.template("{spinner:.green} [{elapsed_precise}] [{bar:40.cyan/blue}] {bytes}/{total_bytes} ({eta})")
.template("{spinner:.green} [{elapsed_precise}] [{bar:40.cyan/blue}] {human_pos}/{human_len} ({eta})")
.expect("Invalid progress bar template")
.progress_chars("#>-"));

Expand Down

0 comments on commit 9898cd2

Please sign in to comment.