Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
sanpii committed Dec 26, 2024
1 parent 467321e commit 34c86df
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions src/connection/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -312,13 +312,7 @@ mod test {
#[should_panic]
fn exec_text() {
let conn = crate::test::new_conn();
let _ = conn.exec_params(
"SELECT $1",
&[],
&[Some(b"foo")],
&[],
crate::Format::Text,
);
let _ = conn.exec_params("SELECT $1", &[], &[Some(b"foo")], &[], crate::Format::Text);
}

#[test]
Expand All @@ -330,12 +324,8 @@ mod test {
let results = conn.describe_prepared(Some("test1"));
assert_eq!(results.nfields(), 1);

let results = conn.exec_prepared(
Some("test1"),
&[Some(b"fooo\0")],
&[],
crate::Format::Text,
);
let results =
conn.exec_prepared(Some("test1"), &[Some(b"fooo\0")], &[], crate::Format::Text);
assert_eq!(results.value(0, 0), Some(&b"fooo"[..]));
}

Expand Down

0 comments on commit 34c86df

Please sign in to comment.