Skip to content

Commit 6de89ea

Browse files
committed
Fix test builds
1 parent b624982 commit 6de89ea

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,13 @@ fn test_statement_pool() {
7070
let stmt = conn.prepare("SELECT 1::INT").unwrap();
7171
let stmt2 = conn.prepare("SELECT 1::INT").unwrap();
7272
assert_eq!(&*stmt as *const _, &*stmt2 as *const _);
73-
assert_eq!(stmt.query([]).unwrap().next().unwrap().get::<_, i32>(0), 1i32);
73+
assert_eq!(stmt.query(&[]).unwrap().next().unwrap().get::<_, i32>(0), 1i32);
7474

7575
let stmt3 = conn.prepare("SELECT 2::INT").unwrap();
76-
assert_eq!(stmt3.query([]).unwrap().next().unwrap().get::<_, i32>(0), 2i32);
76+
assert_eq!(stmt3.query(&[]).unwrap().next().unwrap().get::<_, i32>(0), 2i32);
7777
let stmt4 = conn.prepare("SELECT 1::INT").unwrap();
7878
let a = &*stmt as *const _;
7979
let b = &*stmt4 as *const _;
8080
assert!(a != b);
81-
assert_eq!(stmt4.query([]).unwrap().next().unwrap().get::<_, i32>(0), 1i32);
81+
assert_eq!(stmt4.query(&[]).unwrap().next().unwrap().get::<_, i32>(0), 1i32);
8282
}

0 commit comments

Comments
 (0)