Run rustfmt (nightly)

This commit is contained in:
Ivan Ukhov
2017-08-26 07:52:28 +02:00
parent 7c5d11120a
commit e0793a38a6
3 changed files with 16 additions and 34 deletions

View File

@ -10,12 +10,10 @@ macro_rules! ok(($result:expr) => ($result.unwrap()));
fn connection_error() {
let connection = setup_users(":memory:");
match connection.execute(":)") {
Err(error) => {
assert_eq!(
error.message,
Some(String::from(r#"unrecognized token: ":""#))
)
}
Err(error) => assert_eq!(
error.message,
Some(String::from(r#"unrecognized token: ":""#))
),
_ => unreachable!(),
}
}
@ -125,12 +123,7 @@ fn cursor_workflow() {
ok!(select.bind(&[Value::Integer(42)]));
assert_eq!(ok!(select.next()), None);
ok!(insert.bind(
&[
Value::Integer(42),
Value::String("Bob".to_string()),
],
));
ok!(insert.bind(&[Value::Integer(42), Value::String("Bob".to_string())]));
assert_eq!(ok!(insert.next()), None);
ok!(select.bind(&[Value::Integer(42)]));