1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-08-31 17:07:01 +02:00

bump MSRV to 1.42 (#1616)

This commit is contained in:
Rob Ede
2020-07-21 08:40:30 +01:00
committed by GitHub
parent f8d5ad6b53
commit 0ec335a39c
15 changed files with 29 additions and 82 deletions

View File

@@ -433,14 +433,8 @@ mod tests {
fn json_eq(err: JsonPayloadError, other: JsonPayloadError) -> bool {
match err {
JsonPayloadError::Overflow => match other {
JsonPayloadError::Overflow => true,
_ => false,
},
JsonPayloadError::ContentType => match other {
JsonPayloadError::ContentType => true,
_ => false,
},
JsonPayloadError::Overflow => matches!(other, JsonPayloadError::Overflow),
JsonPayloadError::ContentType => matches!(other, JsonPayloadError::ContentType),
_ => false,
}
}