Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 94b760f

Browse files
authored
Merge pull request #47 from GitoxideLabs/updates
various updates
2 parents 0e24337 + 7d21bb5 commit 94b760f

5 files changed

Lines changed: 8 additions & 8 deletions

File tree

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ tui-react = { version = "0.23.0", optional = true }
7171
futures-core = { version = "0.3.4", optional = true, default-features = false }
7272
futures-lite = { version = "2.1.0", optional = true }
7373
unicode-segmentation = { version = "1.6.0", optional = true }
74-
unicode-width = { version = "0.1.7", optional = true }
74+
unicode-width = { version = "0.2.2", optional = true }
7575
crosstermion = { version = "0.14.0", optional = true, default-features = false }
7676
async-io = { version = "2.2.1", optional = true }
7777

@@ -80,7 +80,7 @@ jiff = { version = "0.2.4", optional = true }
8080

8181
# line renderer
8282
ctrlc = { version = "3.1.4", optional = true, default-features = false, features = ['termination'] }
83-
signal-hook = { version = "0.3.9", optional = true, default-features = false }
83+
signal-hook = { version = "0.4.1", optional = true, default-features = false }
8484
is-terminal = { version = "0.4.9", optional = true }
8585

8686
# units
@@ -93,7 +93,7 @@ all-features = true
9393
[dev-dependencies]
9494
rand = "0.8.1"
9595
env_logger = { version = "0.11.0", default-features = false, features = ["humantime"] }
96-
criterion = { version = "0.5.1", default-features = false }
96+
criterion = { version = "0.8.1", default-features = false }
9797
futures-util = { version = "0.3.4", default-features = false }
9898
argh = "0.1.3"
9999
futures = "0.3.5"

src/render/line/draw.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ fn messages(
132132

133133
pub fn all(out: &mut impl io::Write, show_progress: bool, state: &mut State, config: &Options) -> io::Result<()> {
134134
if !config.keep_running_if_progress_is_empty && state.tree.is_empty() {
135-
return Err(io::Error::new(io::ErrorKind::Other, "stop as progress is empty"));
135+
return Err(io::Error::other("stop as progress is empty"));
136136
}
137137
messages(
138138
out,

src/render/tui/engine.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ pub enum Event {
122122
/// Returns a future that draws the terminal user interface indefinitely.
123123
///
124124
/// * `progress` is the progress tree whose information to visualize.
125-
/// It will usually be changing constantly while the TUI holds it.
125+
/// It will usually be changing constantly while the TUI holds it.
126126
/// * `options` are configuring the TUI.
127127
/// * `events` is a stream of `Event`s which manipulate the TUI while it is running
128128
///

src/unit/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ impl Unit {
120120
current_value: Step,
121121
upper_bound: Option<Step>,
122122
throughput: impl Into<Option<display::Throughput>>,
123-
) -> display::UnitDisplay {
123+
) -> display::UnitDisplay<'_> {
124124
display::UnitDisplay {
125125
current_value,
126126
upper_bound,

tests/unit/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ mod dynamic {
3030
);
3131
assert_eq!(
3232
format!("{}", unit.display(100_002, Some(7_500_000), None)),
33-
"100.0K/7.5M objects [1%]"
33+
"100.0k/7.5M objects [1%]"
3434
);
35-
assert_eq!(format!("{}", unit.display(100_002, None, None)), "100.0K objects");
35+
assert_eq!(format!("{}", unit.display(100_002, None, None)), "100.0k objects");
3636
}
3737
}
3838
mod range {

0 commit comments

Comments
 (0)