File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -74,13 +74,13 @@ impl<'a> RemoteProgress<'a> {
74
74
}
75
75
}
76
76
77
- fn parse_number ( i : & mut & [ u8 ] ) -> PResult < usize > {
77
+ fn parse_number ( i : & mut & [ u8 ] ) -> PResult < usize , ( ) > {
78
78
take_till0 ( |c : u8 | !c. is_ascii_digit ( ) )
79
79
. try_map ( btoi:: btoi)
80
80
. parse_next ( i)
81
81
}
82
82
83
- fn next_optional_percentage ( i : & mut & [ u8 ] ) -> PResult < Option < u32 > > {
83
+ fn next_optional_percentage ( i : & mut & [ u8 ] ) -> PResult < Option < u32 > , ( ) > {
84
84
opt ( terminated (
85
85
preceded (
86
86
take_till0 ( |c : u8 | c. is_ascii_digit ( ) ) ,
@@ -91,11 +91,11 @@ fn next_optional_percentage(i: &mut &[u8]) -> PResult<Option<u32>> {
91
91
. parse_next ( i)
92
92
}
93
93
94
- fn next_optional_number ( i : & mut & [ u8 ] ) -> PResult < Option < usize > > {
94
+ fn next_optional_number ( i : & mut & [ u8 ] ) -> PResult < Option < usize > , ( ) > {
95
95
opt ( preceded ( take_till0 ( |c : u8 | c. is_ascii_digit ( ) ) , parse_number) ) . parse_next ( i)
96
96
}
97
97
98
- fn parse_progress < ' i > ( line : & mut & ' i [ u8 ] ) -> PResult < RemoteProgress < ' i > > {
98
+ fn parse_progress < ' i > ( line : & mut & ' i [ u8 ] ) -> PResult < RemoteProgress < ' i > , ( ) > {
99
99
let action = take_till1 ( |c| c == b':' ) . parse_next ( line) ?;
100
100
let percent = next_optional_percentage. parse_next ( line) ?;
101
101
let step = next_optional_number. parse_next ( line) ?;
You can’t perform that action at this time.
0 commit comments