Skip to content

Commit f8c2b51

Browse files
committed
Fixed clippy matches!(..)
1 parent 1a55270 commit f8c2b51

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/de/tests.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -240,13 +240,13 @@ fn rename() {
240240
fn forgot_apostrophes() {
241241
let de: Result<(i32, String)> = from_str("(4, \"Hello)");
242242

243-
assert!(match de {
243+
assert!(matches!(
244+
de,
244245
Err(Error {
245246
code: ErrorCode::ExpectedStringEnd,
246247
position: _,
247-
}) => true,
248-
_ => false,
249-
});
248+
})
249+
));
250250
}
251251

252252
#[test]

0 commit comments

Comments
 (0)