Skip to content

Commit cdfcef8

Browse files
committed
Update for upstream changes
1 parent a35af16 commit cdfcef8

2 files changed

Lines changed: 6 additions & 6 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.2"
27-
phf_mac = "0.2"
26+
phf = "0.3"
27+
phf_mac = "0.3"
2828
openssl = "0.2.1"
2929
time = "0.1"
3030
log = "0.1"

tests/test.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -623,7 +623,7 @@ fn test_notifications_next_block() {
623623
let conn = or_panic!(Connection::connect("postgres://postgres@localhost", &SslMode::None));
624624
or_panic!(conn.execute("LISTEN test_notifications_next_block", &[]));
625625

626-
spawn(proc() {
626+
spawn(|| {
627627
let conn = or_panic!(Connection::connect("postgres://postgres@localhost", &SslMode::None));
628628
timer::sleep(Duration::milliseconds(500));
629629
or_panic!(conn.execute("NOTIFY test_notifications_next_block, 'foo'", &[]));
@@ -642,7 +642,7 @@ fn test_notifications_next_block_for() {
642642
let conn = or_panic!(Connection::connect("postgres://postgres@localhost", &SslMode::None));
643643
or_panic!(conn.execute("LISTEN test_notifications_next_block_for", &[]));
644644

645-
spawn(proc() {
645+
spawn(|| {
646646
let conn = or_panic!(Connection::connect("postgres://postgres@localhost", &SslMode::None));
647647
timer::sleep(Duration::milliseconds(500));
648648
or_panic!(conn.execute("NOTIFY test_notifications_next_block_for, 'foo'", &[]));
@@ -661,7 +661,7 @@ fn test_notifications_next_block_for_timeout() {
661661
let conn = or_panic!(Connection::connect("postgres://postgres@localhost", &SslMode::None));
662662
or_panic!(conn.execute("LISTEN test_notifications_next_block_for_timeout", &[]));
663663

664-
spawn(proc() {
664+
spawn(|| {
665665
let conn = or_panic!(Connection::connect("postgres://postgres@localhost", &SslMode::None));
666666
timer::sleep(Duration::seconds(2));
667667
or_panic!(conn.execute("NOTIFY test_notifications_next_block_for_timeout, 'foo'", &[]));
@@ -683,7 +683,7 @@ fn test_cancel_query() {
683683
let conn = or_panic!(Connection::connect("postgres://postgres@localhost", &SslMode::None));
684684
let cancel_data = conn.cancel_data();
685685

686-
spawn(proc() {
686+
spawn(move || {
687687
timer::sleep(Duration::milliseconds(500));
688688
assert!(postgres::cancel_query("postgres://postgres@localhost", &SslMode::None,
689689
cancel_data).is_ok());

0 commit comments

Comments
 (0)