File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ pub(crate) mod function {
4
4
use gix_date:: { time:: Sign , OffsetInSeconds , SecondsSinceUnixEpoch , Time } ;
5
5
use winnow:: {
6
6
combinator:: alt,
7
- combinator:: repeat,
8
7
combinator:: separated_pair,
9
8
combinator:: terminated,
10
9
error:: { AddContext , ParserError , StrContext } ,
@@ -29,8 +28,8 @@ pub(crate) mod function {
29
28
. verify_map ( |v| btoi :: < SecondsSinceUnixEpoch > ( v) . ok ( ) )
30
29
. context ( StrContext :: Expected ( "<timestamp>" . into ( ) ) ) ,
31
30
alt ( (
32
- repeat ( 1 .., b"-" ) . map ( |_: ( ) | Sign :: Minus ) ,
33
- repeat ( 1 .., b"+" ) . map ( |_: ( ) | Sign :: Plus ) ,
31
+ take_while ( 1 .., b'-' ) . map ( |_| Sign :: Minus ) ,
32
+ take_while ( 1 .., b'+' ) . map ( |_| Sign :: Plus ) ,
34
33
) )
35
34
. context ( StrContext :: Expected ( "+|-" . into ( ) ) ) ,
36
35
take_while ( 2 , AsChar :: is_dec_digit)
You can’t perform that action at this time.
0 commit comments