Skip to content

Commit be0c85a

Browse files
committed
Update phf
1 parent d95eb35 commit be0c85a

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

codegen/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ version = "0.1.0"
44
authors = ["Steven Fackler <[email protected]>"]
55

66
[dependencies]
7-
phf_codegen = "0.9"
7+
phf_codegen = "0.10"
88
regex = "1.0"
99
marksman_escape = "0.1"
1010
linked-hash-map = "0.5"

tokio-postgres/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ log = "0.4"
4848
parking_lot = "0.11"
4949
percent-encoding = "2.0"
5050
pin-project-lite = "0.2"
51-
phf = "0.9"
51+
phf = "0.10"
5252
postgres-protocol = { version = "0.6.1", path = "../postgres-protocol" }
5353
postgres-types = { version = "0.2.1", path = "../postgres-types" }
5454
socket2 = "0.4"

tokio-postgres/src/error/sqlstate.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -1341,7 +1341,7 @@ enum Inner {
13411341
static SQLSTATE_MAP: phf::Map<&'static str, SqlState> =
13421342
::phf::Map {
13431343
key: 12913932095322966823,
1344-
disps: ::phf::Slice::Static(&[
1344+
disps: &[
13451345
(0, 12),
13461346
(0, 18),
13471347
(0, 25),
@@ -1394,8 +1394,8 @@ static SQLSTATE_MAP: phf::Map<&'static str, SqlState> =
13941394
(0, 242),
13951395
(0, 72),
13961396
(16, 53),
1397-
]),
1398-
entries: ::phf::Slice::Static(&[
1397+
],
1398+
entries: &[
13991399
("22034", SqlState::MORE_THAN_ONE_SQL_JSON_ITEM),
14001400
("40P01", SqlState::T_R_DEADLOCK_DETECTED),
14011401
("42703", SqlState::UNDEFINED_COLUMN),
@@ -1654,5 +1654,5 @@ static SQLSTATE_MAP: phf::Map<&'static str, SqlState> =
16541654
("25003", SqlState::INAPPROPRIATE_ACCESS_MODE_FOR_BRANCH_TRANSACTION),
16551655
("02001", SqlState::NO_ADDITIONAL_DYNAMIC_RESULT_SETS_RETURNED),
16561656
("42804", SqlState::DATATYPE_MISMATCH),
1657-
]),
1657+
],
16581658
};

0 commit comments

Comments
 (0)