Skip to content

Commit a0888e4

Browse files
committed
Updates
1 parent f3fbdd5 commit a0888e4

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

src/error.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ macro_rules! make_errors(
2828
impl SqlState {
2929
#[doc(hidden)]
3030
pub fn from_code(s: &str) -> SqlState {
31-
match STATE_MAP.find_equiv(s) {
31+
match STATE_MAP.get_equiv(s) {
3232
Some(state) => state.clone(),
3333
None => SqlState::Unknown(s.into_string())
3434
}

tests/types/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ use std::f32;
77
use std::f64;
88
use time;
99
use time::Timespec;
10+
use std::num::Float;
1011

1112
use postgres::{Connection, NoSsl};
1213
use postgres::types::array::ArrayBase;

0 commit comments

Comments
 (0)