Skip to content

Commit 8e7fd3a

Browse files
committed
release: 0.3.1
1 parent db73aae commit 8e7fd3a

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
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

Cargo.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "linya"
3-
version = "0.3.0"
3+
version = "0.3.1"
44
authors = ["Colin Woodbury <colin@fosskers.ca>"]
55
edition = "2021"
66
description = "Simple concurrent progress bars."
@@ -16,10 +16,9 @@ exclude = ["screenshots/*"]
1616
github = { repository = "fosskers/linya", branch = "master", workflow = "Tests" }
1717

1818
[dependencies]
19-
terminal_size = "0.1"
19+
terminal_size = "0.3"
2020

2121
[dev-dependencies]
2222
curl = "0.4"
2323
rand = "0.8"
2424
rayon = "1.5"
25-
version-sync = "0.9"

src/lib.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@
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

9998
use std::fmt;
10099
use 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;

tests/version-numbers.rs

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)