We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1a55270 commit f8c2b51Copy full SHA for f8c2b51
src/de/tests.rs
@@ -240,13 +240,13 @@ fn rename() {
240
fn forgot_apostrophes() {
241
let de: Result<(i32, String)> = from_str("(4, \"Hello)");
242
243
- assert!(match de {
+ assert!(matches!(
244
+ de,
245
Err(Error {
246
code: ErrorCode::ExpectedStringEnd,
247
position: _,
- }) => true,
248
- _ => false,
249
- });
+ })
+ ));
250
}
251
252
#[test]
0 commit comments