Skip to content

Commit d5c0cc0

Browse files
committed
Fix for upstream changes
1 parent 810a744 commit d5c0cc0

10 files changed

Lines changed: 145 additions & 145 deletions

File tree

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ path = "tests/test.rs"
2323
default = ["uuid"]
2424

2525
[dependencies]
26-
phf = "0.3"
27-
phf_mac = "0.3"
26+
phf = "0.4"
27+
phf_mac = "0.4"
2828
openssl = "0.2.1"
2929
time = "0.1"
3030
log = "0.1"

src/error.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use phf;
1010
use Result;
1111
use types::Type;
1212

13-
macro_rules! make_errors(
13+
macro_rules! make_errors {
1414
($($code:expr => $error:ident),+) => (
1515
/// SQLSTATE error codes
1616
#[deriving(PartialEq, Eq, Clone, Show)]
@@ -34,10 +34,10 @@ macro_rules! make_errors(
3434
}
3535
}
3636
)
37-
)
37+
}
3838

3939
// From http://www.postgresql.org/docs/9.2/static/errcodes-appendix.html
40-
make_errors!(
40+
make_errors! {
4141
// Class 00 — Successful Completion
4242
"00000" => SuccessfulCompletion,
4343

@@ -353,7 +353,7 @@ make_errors!(
353353
"XX000" => InternalError,
354354
"XX001" => DataCorrupted,
355355
"XX002" => IndexCorrupted
356-
)
356+
}
357357

358358
/// Reasons a new Postgres connection could fail
359359
#[deriving(Clone, PartialEq, Eq)]

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1267,7 +1267,7 @@ impl<'conn> Statement<'conn> {
12671267
more_rows: true,
12681268
finished: false,
12691269
};
1270-
try!(result.read_rows())
1270+
try!(result.read_rows());
12711271

12721272
Ok(result)
12731273
}

src/macros.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
macro_rules! try_desync(
1+
macro_rules! try_desync {
22
($s:expr, $e:expr) => (
33
match $e {
44
Ok(ok) => ok,
@@ -8,9 +8,9 @@ macro_rules! try_desync(
88
}
99
}
1010
)
11-
)
11+
}
1212

13-
macro_rules! check_desync(
13+
macro_rules! check_desync {
1414
($e:expr) => ({
1515
if $e.canary() != CANARY {
1616
panic!("Connection use after free. See mozilla/rust#13246.");
@@ -19,12 +19,12 @@ macro_rules! check_desync(
1919
return Err(::Error::StreamDesynchronized);
2020
}
2121
})
22-
)
22+
}
2323

24-
macro_rules! bad_response(
24+
macro_rules! bad_response {
2525
($s:expr) => ({
2626
debug!("Unexpected response");
2727
$s.desynchronized = true;
2828
return Err(::Error::BadResponse);
2929
})
30-
)
30+
}

0 commit comments

Comments
 (0)