Skip to content

Commit

Permalink
better type inference help
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Dyas committed Mar 16, 2021
1 parent 9582c46 commit 62cf818
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/testing.rs
Expand Up @@ -204,19 +204,19 @@ mod tests {
MockCmd::new(cmd("GET").arg("bar"), Ok(b"foo")),
]);

let _: Value = cmd("SET")
cmd("SET")
.arg("foo")
.arg(42)
.query_async(&mut conn)
.query_async::<_, ()>(&mut conn)
.await
.unwrap();
let result: Result<usize, _> = cmd("GET").arg("foo").query_async(&mut conn).await;
assert_eq!(result, Ok(42));

let _: Value = cmd("SET")
cmd("SET")
.arg("bar")
.arg("foo")
.query_async(&mut conn)
.query_async::<_, ()>(&mut conn)
.await
.unwrap();
let result: Result<Vec<u8>, _> = cmd("GET").arg("bar").query_async(&mut conn).await;
Expand Down

0 comments on commit 62cf818

Please sign in to comment.