Skip to content

Commit b637ce6

Browse files
committed
Bump rust-phf version
1 parent cb096d9 commit b637ce6

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ rev = "ad915f13ae2ad4217c18328a618ad696fb7014e1"
1717
[dependencies.phf]
1818

1919
git = "https://github.com/sfackler/rust-phf"
20-
rev = "a0ab8d7f517305c77cdb1d51076ff4b3e31923e5"
20+
rev = "cb4ed93175b656f442802c27e039add8e2b86723"
2121

2222
[dependencies.phf_mac]
2323

2424
git = "https://github.com/sfackler/rust-phf"
25-
rev = "a0ab8d7f517305c77cdb1d51076ff4b3e31923e5"
25+
rev = "cb4ed93175b656f442802c27e039add8e2b86723"

src/lib/error.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ macro_rules! make_errors(
2020
UnknownSqlState(String)
2121
}
2222

23-
static STATE_MAP: PhfMap<PostgresSqlState> = phf_map!(
23+
static STATE_MAP: PhfMap<&'static str, PostgresSqlState> = phf_map!(
2424
$($code => $error),+
2525
);
2626

2727
impl PostgresSqlState {
2828
#[doc(hidden)]
2929
pub fn from_code(s: &str) -> PostgresSqlState {
30-
match STATE_MAP.find(&s) {
30+
match STATE_MAP.find_equiv(&s) {
3131
Some(state) => state.clone(),
3232
None => UnknownSqlState(s.to_str())
3333
}

submodules/rust-phf

Submodule rust-phf updated from a0ab8d7 to cb4ed93

0 commit comments

Comments
 (0)