diff --git a/CHANGELOG.md b/CHANGELOG.md index ed7902f..e927988 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # `linya` Changelog +## 0.3.1 (2024-09-15) + +#### Changed + +- Bumped dependencies. + ## 0.3.0 (2022-05-18) #### Added diff --git a/Cargo.toml b/Cargo.toml index b5bdc39..961d354 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "linya" -version = "0.3.0" +version = "0.3.1" authors = ["Colin Woodbury "] edition = "2021" description = "Simple concurrent progress bars." @@ -16,10 +16,9 @@ exclude = ["screenshots/*"] github = { repository = "fosskers/linya", branch = "master", workflow = "Tests" } [dependencies] -terminal_size = "0.1" +terminal_size = "0.3" [dev-dependencies] curl = "0.4" rand = "0.8" rayon = "1.5" -version-sync = "0.9" diff --git a/src/lib.rs b/src/lib.rs index 0c1cd71..6802891 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -94,7 +94,6 @@ //! [indicatif]: https://lib.rs/crates/indicatif #![warn(missing_docs)] -#![doc(html_root_url = "https://docs.rs/linya/0.3.0")] use std::fmt; use std::io::{BufWriter, Stderr, Write}; @@ -205,7 +204,7 @@ impl Progress { // running in a terminal, and no rerendering can be done. if let Some((term_width, term_height)) = self.size { let pos = self.bars.len() - bar.0; - let mut b = &mut self.bars[bar.0]; + let b = &mut self.bars[bar.0]; let cur_percent = (100 * b.curr as u64) / (b.total as u64); // For a newly cancelled bar `diff` is equal to 100. let diff = cur_percent - b.prev_percent as u64; @@ -288,7 +287,7 @@ impl Progress { /// ownership so that the bar cannot be manipulated again. pub fn cancel(&mut self, bar: Bar) { { - let mut b = &mut self.bars[bar.0]; + let b = &mut self.bars[bar.0]; b.cancelled = true; // Force redraw by setting `prev_percent` to 0. b.prev_percent = 0; diff --git a/tests/version-numbers.rs b/tests/version-numbers.rs deleted file mode 100644 index 9f1d04a..0000000 --- a/tests/version-numbers.rs +++ /dev/null @@ -1,4 +0,0 @@ -#[test] -fn test_html_root_url() { - version_sync::assert_html_root_url_updated!("src/lib.rs"); -}