Skip to content

Commit

Permalink
Use syn::ParseStream::error
Browse files Browse the repository at this point in the history
This fails tests.

frondeus#135
  • Loading branch information
tamird committed Nov 7, 2023
1 parent 6940642 commit bc2f8d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/test-case-core/src/complex_expr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -323,11 +323,11 @@ impl ComplexTestCase {
expected_regex: input.parse()?,
})
} else {
proc_macro_error::abort!(input.span(), "'with-regex' feature is required to use 'matches-regex' keyword");
return Err(input.error("'with-regex' feature is required to use 'matches-regex' keyword"));
}
}
} else {
proc_macro_error::abort!(input.span(), "cannot parse complex expression")
return Err(input.error("cannot parse complex expression"));
})
}
}
Expand Down

0 comments on commit bc2f8d8

Please sign in to comment.