Skip to content

Commit 04a7f80

Browse files
committed
fix error convert logic
1 parent 8f5cb71 commit 04a7f80

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/parser.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ pub struct RecordParseError {
2828
pub message: String
2929
}
3030

31-
impl<'a, P: Stream<Item=char, Range=&'a str>> From<CombinatorParseError<P>> for RecordParseError {
32-
fn from(error: CombinatorParseError<P>) -> Self {
31+
impl<'a> From<CombinatorParseError<State<&'a str>>> for RecordParseError {
32+
fn from(error: CombinatorParseError<State<&'a str>>) -> Self {
3333
let line = error.position.line;
3434
let column = error.position.column;
3535

0 commit comments

Comments
 (0)