We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 659ebe9 commit b213889Copy full SHA for b213889
gix-protocol/src/remote_progress.rs
@@ -76,15 +76,15 @@ impl<'a> RemoteProgress<'a> {
76
77
fn parse_number(i: &[u8]) -> winnow::IResult<&[u8], usize> {
78
take_till0(|c: u8| !c.is_ascii_digit())
79
- .map_res(btoi::btoi)
+ .try_map(btoi::btoi)
80
.parse_next(i)
81
}
82
83
fn next_optional_percentage(i: &[u8]) -> winnow::IResult<&[u8], Option<u32>> {
84
opt(terminated(
85
preceded(
86
take_till0(|c: u8| c.is_ascii_digit()),
87
- parse_number.map_res(u32::try_from),
+ parse_number.try_map(u32::try_from),
88
),
89
tag(b"%"),
90
))
0 commit comments