Skip to content

Commit 8360821

Browse files
committed
Update and fix phf versions
Since we're caching the output of phf_codegen we need to force our version to stay the same.
1 parent d48fa83 commit 8360821

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ nightly = []
2727
bufstream = "0.1"
2828
byteorder = "0.5"
2929
log = "0.3"
30-
phf = "0.7"
30+
phf = "=0.7.14"
3131
hex = "0.1"
3232
net2 = "0.2.16"
3333
rustc-serialize = { version = "0.3", optional = true }

codegen/Cargo.toml

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

66
[dependencies]
7-
phf_codegen = "0.7"
7+
phf_codegen = "=0.7.14"
88
regex = "0.1"
99
marksman_escape = "0.1"

src/error/sqlstate.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ pub enum SqlState {
482482
#[cfg_attr(rustfmt, rustfmt_skip)]
483483
static SQLSTATE_MAP: phf::Map<&'static str, SqlState> = ::phf::Map {
484484
key: 1897749892740154578,
485-
disps: &[
485+
disps: ::phf::Slice::Static(&[
486486
(0, 10),
487487
(1, 206),
488488
(0, 38),
@@ -531,8 +531,8 @@ static SQLSTATE_MAP: phf::Map<&'static str, SqlState> = ::phf::Map {
531531
(0, 233),
532532
(2, 149),
533533
(0, 105),
534-
],
535-
entries: &[
534+
]),
535+
entries: ::phf::Slice::Static(&[
536536
("42P03", SqlState::DuplicateCursor),
537537
("22019", SqlState::InvalidEscapeCharacter),
538538
("22022", SqlState::IndicatorOverflow),
@@ -769,7 +769,7 @@ static SQLSTATE_MAP: phf::Map<&'static str, SqlState> = ::phf::Map {
769769
("28000", SqlState::InvalidAuthorizationSpecification),
770770
("0Z002", SqlState::StackedDiagnosticsAccessedWithoutActiveHandler),
771771
("02000", SqlState::NoData),
772-
]
772+
]),
773773
};
774774

775775
impl SqlState {

0 commit comments

Comments
 (0)