@@ -61,7 +61,8 @@ fn parse_p(
61
61
[ # ( tok , loc ) , .. ] , Beginning , _ ->
62
62
Error ( ParseError (
63
63
loc ,
64
- "Unexpected start to csv content: " <> token . to_lexeme ( tok ) ,
64
+ "Unexpected start to csv content: "
65
+ <> token . to_lexeme ( tok ) ,
65
66
) )
66
67
67
68
// If we just parsed a field, we're expecting either a comma or a CRLF
@@ -77,7 +78,8 @@ fn parse_p(
77
78
[ # ( tok , loc ) , .. ] , JustParsedField , _ ->
78
79
Error ( ParseError (
79
80
loc ,
80
- "Expected comma or newline after field, found: " <> token . to_lexeme ( tok ) ,
81
+ "Expected comma or newline after field, found: "
82
+ <> token . to_lexeme ( tok ) ,
81
83
) )
82
84
83
85
// If we just parsed a CR, we're expecting an LF
@@ -87,7 +89,8 @@ fn parse_p(
87
89
[ # ( tok , loc ) , .. ] , JustParsedCR , _ ->
88
90
Error ( ParseError (
89
91
loc ,
90
- "Expected \" \\ n\" after \" \\ r\" , found: " <> token . to_lexeme ( tok ) ,
92
+ "Expected \" \\ n\" after \" \\ r\" , found: "
93
+ <> token . to_lexeme ( tok ) ,
91
94
) )
92
95
93
96
// If we just parsed a comma, we're expecting an Escaped or Non-Escaped string, or another comma
@@ -123,7 +126,7 @@ fn parse_p(
123
126
Error ( ParseError (
124
127
loc ,
125
128
"Expected escaped or non-escaped string after comma, found: "
126
- <> token . to_lexeme ( tok ) ,
129
+ <> token . to_lexeme ( tok ) ,
127
130
) )
128
131
129
132
// If we just parsed a new line, we're expecting an escaped or non-escaped string
@@ -143,7 +146,7 @@ fn parse_p(
143
146
Error ( ParseError (
144
147
loc ,
145
148
"Expected escaped or non-escaped string after newline, found: "
146
- <> token . to_lexeme ( tok ) ,
149
+ <> token . to_lexeme ( tok ) ,
147
150
) )
148
151
149
152
// If we're inside an escaped string, we can take anything until we get a double quote,
0 commit comments