diff --git a/openssl-sys/build/main.rs b/openssl-sys/build/main.rs index 49f26d2b7f37e9dfd15841cd7eaacfc509b5d3a2..b9f47a7bce8d99fccf993dbc5602c7571b21a58f 100644 --- a/openssl-sys/build/main.rs +++ b/openssl-sys/build/main.rs @@ -270,6 +270,7 @@ due to this version mismatch. // parses a string that looks like "0x100020cfL" #[allow(deprecated)] // trim_right_matches is now trim_end_matches +#[allow(clippy::match_like_matches_macro)] // matches macro requires rust 1.42.0 fn parse_version(version: &str) -> u64 { // cut off the 0x prefix assert!(version.starts_with("0x")); diff --git a/openssl/src/ssl/bio.rs b/openssl/src/ssl/bio.rs index cabe057b5c009cefde92243fc6572476e606f979..2277d043eee3ac1200bd2bca5b5c2bb2f40a30df 100644 --- a/openssl/src/ssl/bio.rs +++ b/openssl/src/ssl/bio.rs @@ -128,6 +128,7 @@ unsafe extern "C" fn bread(bio: *mut BIO, buf: *mut c_char, len: c_int) } } +#[allow(clippy::match_like_matches_macro)] // matches macro requires rust 1.42.0 fn retriable_error(err: &io::Error) -> bool { match err.kind() { io::ErrorKind::WouldBlock | io::ErrorKind::NotConnected => true,