History

update dependencie

Sebastian Thiel committed 6 years ago

Commit ade06b41 parent 310a59e2 files · +60 −37Browse files

Showing the changes to git-features/src/progress (1 of 2 files). Show all

Unified · Split

git-features/src/progress/mod.rs+10−7
@@ -3,12 +3,15 @@ use std::io; · 2 unmodified lines
33 pub use prodash::progress::{Discard, DoOrDiscard, Either, ThroughputOnDrop};
44 pub use prodash::{unit, Progress, Unit};
55
6−pub fn bytes() -> Unit {
7− unit::dynamic_and_mode(unit::Bytes, unit::display::Mode::with_throughput().and_percentage())
6+pub fn bytes() -> Option<Unit> {
7+ Some(unit::dynamic_and_mode(
8+ unit::Bytes,
9+ unit::display::Mode::with_throughput().and_percentage(),
10+ ))
811 }
912
10−pub fn count(name: &'static str) -> Unit {
11− unit::dynamic_and_mode(
13+pub fn count(name: &'static str) -> Option<Unit> {
14+ Some(unit::dynamic_and_mode(
1215 unit::Human::new(
1316 {
1417 let mut f = unit::human::Formatter::new();
@@ -18,11 +21,11 @@ pub fn count(name: &'static str) -> Unit { · 3 unmodified lines
1821 name,
1922 ),
2023 unit::display::Mode::with_throughput().and_percentage(),
21− )
24+ ))
2225 }
2326
24−pub fn steps() -> Unit {
25− unit::dynamic(unit::Range::new("steps"))
27+pub fn steps() -> Option<Unit> {
28+ Some(unit::dynamic(unit::Range::new("steps")))
2629 }
2730
2831 /// A structure passing every 'read' call through to the contained Progress instance using `inc_by(bytes_read)`.