File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -17,9 +17,9 @@ rev = "ad915f13ae2ad4217c18328a618ad696fb7014e1"
1717[dependencies .phf ]
1818
1919git = " https://github.com/sfackler/rust-phf"
20- rev = " a0ab8d7f517305c77cdb1d51076ff4b3e31923e5 "
20+ rev = " cb4ed93175b656f442802c27e039add8e2b86723 "
2121
2222[dependencies .phf_mac ]
2323
2424git = " https://github.com/sfackler/rust-phf"
25- rev = " a0ab8d7f517305c77cdb1d51076ff4b3e31923e5 "
25+ rev = " cb4ed93175b656f442802c27e039add8e2b86723 "
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments