From be0c85ac0b985986b7ffdf8e68cc91294481c2e2 Mon Sep 17 00:00:00 2001 From: Steven Fackler Date: Tue, 10 Aug 2021 20:30:27 -0400 Subject: [PATCH] Update phf --- codegen/Cargo.toml | 2 +- tokio-postgres/Cargo.toml | 2 +- tokio-postgres/src/error/sqlstate.rs | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/codegen/Cargo.toml b/codegen/Cargo.toml index fc02751c..14bebccf 100644 --- a/codegen/Cargo.toml +++ b/codegen/Cargo.toml @@ -4,7 +4,7 @@ version = "0.1.0" authors = ["Steven Fackler "] [dependencies] -phf_codegen = "0.9" +phf_codegen = "0.10" regex = "1.0" marksman_escape = "0.1" linked-hash-map = "0.5" diff --git a/tokio-postgres/Cargo.toml b/tokio-postgres/Cargo.toml index db3a65f3..1bedf6b5 100644 --- a/tokio-postgres/Cargo.toml +++ b/tokio-postgres/Cargo.toml @@ -48,7 +48,7 @@ log = "0.4" parking_lot = "0.11" percent-encoding = "2.0" pin-project-lite = "0.2" -phf = "0.9" +phf = "0.10" postgres-protocol = { version = "0.6.1", path = "../postgres-protocol" } postgres-types = { version = "0.2.1", path = "../postgres-types" } socket2 = "0.4" diff --git a/tokio-postgres/src/error/sqlstate.rs b/tokio-postgres/src/error/sqlstate.rs index 1996d9b1..71648a94 100644 --- a/tokio-postgres/src/error/sqlstate.rs +++ b/tokio-postgres/src/error/sqlstate.rs @@ -1341,7 +1341,7 @@ enum Inner { static SQLSTATE_MAP: phf::Map<&'static str, SqlState> = ::phf::Map { key: 12913932095322966823, - disps: ::phf::Slice::Static(&[ + disps: &[ (0, 12), (0, 18), (0, 25), @@ -1394,8 +1394,8 @@ static SQLSTATE_MAP: phf::Map<&'static str, SqlState> = (0, 242), (0, 72), (16, 53), - ]), - entries: ::phf::Slice::Static(&[ + ], + entries: &[ ("22034", SqlState::MORE_THAN_ONE_SQL_JSON_ITEM), ("40P01", SqlState::T_R_DEADLOCK_DETECTED), ("42703", SqlState::UNDEFINED_COLUMN), @@ -1654,5 +1654,5 @@ static SQLSTATE_MAP: phf::Map<&'static str, SqlState> = ("25003", SqlState::INAPPROPRIATE_ACCESS_MODE_FOR_BRANCH_TRANSACTION), ("02001", SqlState::NO_ADDITIONAL_DYNAMIC_RESULT_SETS_RETURNED), ("42804", SqlState::DATATYPE_MISMATCH), - ]), + ], };