From c29fc5cccdf6f3c8477927e56e4ec95aa1f5ebd3 Mon Sep 17 00:00:00 2001 From: Neeraj Jaiswal Date: Tue, 31 Mar 2020 18:01:06 +0530 Subject: [PATCH] Remove matches dependency and use matches macro from std --- Cargo.lock | 1 - sqlx-core/Cargo.toml | 3 --- sqlx-core/src/mysql/protocol/handshake.rs | 5 ++--- sqlx-core/src/postgres/protocol/authentication.rs | 5 ++--- sqlx-core/src/postgres/protocol/ready_for_query.rs | 3 +-- sqlx-core/src/postgres/protocol/response.rs | 3 +-- 6 files changed, 6 insertions(+), 14 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index ab5d6a19..f6e0dbc1 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1712,7 +1712,6 @@ dependencies = [ "libc", "libsqlite3-sys", "log", - "matches", "md-5", "memchr", "num-bigint", diff --git a/sqlx-core/Cargo.toml b/sqlx-core/Cargo.toml index 39021a00..63fc2d64 100644 --- a/sqlx-core/Cargo.toml +++ b/sqlx-core/Cargo.toml @@ -73,6 +73,3 @@ version = "0.17.1" optional = true default-features = false features = [ "pkg-config", "vcpkg", "bundled" ] - -[dev-dependencies] -matches = "0.1.8" diff --git a/sqlx-core/src/mysql/protocol/handshake.rs b/sqlx-core/src/mysql/protocol/handshake.rs index 89364d38..fa45ae4e 100644 --- a/sqlx-core/src/mysql/protocol/handshake.rs +++ b/sqlx-core/src/mysql/protocol/handshake.rs @@ -103,7 +103,6 @@ impl Handshake { #[cfg(test)] mod tests { use super::{AuthPlugin, Capabilities, Handshake, Status}; - use matches::assert_matches; const HANDSHAKE_MARIA_DB_10_4_7: &[u8] = b"\n5.5.5-10.4.7-MariaDB-1:10.4.7+maria~bionic\x00\x0b\x00\x00\x00t6L\\j\"dS\x00\xfe\xf7\x08\x02\x00\xff\x81\x15\x00\x00\x00\x00\x00\x00\x07\x00\x00\x00U14Oph9\"