File tree Expand file tree Collapse file tree 4 files changed +10
-10
lines changed
Expand file tree Collapse file tree 4 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 11# ` linya ` Changelog
22
3+ ## 0.3.1 (2024-09-15)
4+
5+ #### Changed
6+
7+ - Bumped dependencies.
8+
39## 0.3.0 (2022-05-18)
410
511#### Added
Original file line number Diff line number Diff line change 11[package ]
22name = " linya"
3- version = " 0.3.0 "
3+ version = " 0.3.1 "
44authors = [" Colin Woodbury <colin@fosskers.ca>" ]
55edition = " 2021"
66description = " Simple concurrent progress bars."
@@ -16,10 +16,9 @@ exclude = ["screenshots/*"]
1616github = { repository = " fosskers/linya" , branch = " master" , workflow = " Tests" }
1717
1818[dependencies ]
19- terminal_size = " 0.1 "
19+ terminal_size = " 0.3 "
2020
2121[dev-dependencies ]
2222curl = " 0.4"
2323rand = " 0.8"
2424rayon = " 1.5"
25- version-sync = " 0.9"
Original file line number Diff line number Diff line change 9494//! [indicatif]: https://lib.rs/crates/indicatif
9595
9696#![ warn( missing_docs) ]
97- #![ doc( html_root_url = "https://docs.rs/linya/0.3.0" ) ]
9897
9998use std:: fmt;
10099use std:: io:: { BufWriter , Stderr , Write } ;
@@ -205,7 +204,7 @@ impl Progress {
205204 // running in a terminal, and no rerendering can be done.
206205 if let Some ( ( term_width, term_height) ) = self . size {
207206 let pos = self . bars . len ( ) - bar. 0 ;
208- let mut b = & mut self . bars [ bar. 0 ] ;
207+ let b = & mut self . bars [ bar. 0 ] ;
209208 let cur_percent = ( 100 * b. curr as u64 ) / ( b. total as u64 ) ;
210209 // For a newly cancelled bar `diff` is equal to 100.
211210 let diff = cur_percent - b. prev_percent as u64 ;
@@ -288,7 +287,7 @@ impl Progress {
288287 /// ownership so that the bar cannot be manipulated again.
289288 pub fn cancel ( & mut self , bar : Bar ) {
290289 {
291- let mut b = & mut self . bars [ bar. 0 ] ;
290+ let b = & mut self . bars [ bar. 0 ] ;
292291 b. cancelled = true ;
293292 // Force redraw by setting `prev_percent` to 0.
294293 b. prev_percent = 0 ;
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments