Skip to content

Commit 444f970

Browse files
committed
Don't bother with error tracking that is ignored
1 parent 237657e commit 444f970

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

gix-protocol/src/remote_progress.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,13 @@ impl<'a> RemoteProgress<'a> {
7474
}
7575
}
7676

77-
fn parse_number(i: &mut &[u8]) -> PResult<usize> {
77+
fn parse_number(i: &mut &[u8]) -> PResult<usize, ()> {
7878
take_till0(|c: u8| !c.is_ascii_digit())
7979
.try_map(btoi::btoi)
8080
.parse_next(i)
8181
}
8282

83-
fn next_optional_percentage(i: &mut &[u8]) -> PResult<Option<u32>> {
83+
fn next_optional_percentage(i: &mut &[u8]) -> PResult<Option<u32>, ()> {
8484
opt(terminated(
8585
preceded(
8686
take_till0(|c: u8| c.is_ascii_digit()),
@@ -91,11 +91,11 @@ fn next_optional_percentage(i: &mut &[u8]) -> PResult<Option<u32>> {
9191
.parse_next(i)
9292
}
9393

94-
fn next_optional_number(i: &mut &[u8]) -> PResult<Option<usize>> {
94+
fn next_optional_number(i: &mut &[u8]) -> PResult<Option<usize>, ()> {
9595
opt(preceded(take_till0(|c: u8| c.is_ascii_digit()), parse_number)).parse_next(i)
9696
}
9797

98-
fn parse_progress<'i>(line: &mut &'i [u8]) -> PResult<RemoteProgress<'i>> {
98+
fn parse_progress<'i>(line: &mut &'i [u8]) -> PResult<RemoteProgress<'i>, ()> {
9999
let action = take_till1(|c| c == b':').parse_next(line)?;
100100
let percent = next_optional_percentage.parse_next(line)?;
101101
let step = next_optional_number.parse_next(line)?;

0 commit comments

Comments
 (0)