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