Run rustfmt

This commit is contained in:
Ivan Ukhov 2020-06-10 15:39:35 +02:00
parent eb5d10486c
commit 18b20fe424

View File

@ -277,9 +277,15 @@ fn statement_read_with_optional() {
assert_eq!(ok!(statement.next()), State::Row);
assert_eq!(ok!(statement.read::<Option<i64>>(0)), Some(1));
assert_eq!(ok!(statement.read::<Option<String>>(1)), Some(String::from("Alice")));
assert_eq!(
ok!(statement.read::<Option<String>>(1)),
Some(String::from("Alice"))
);
assert_eq!(ok!(statement.read::<Option<f64>>(2)), Some(42.69));
assert_eq!(ok!(statement.read::<Option<Vec<u8>>>(3)), Some(vec![0x42, 0x69]));
assert_eq!(
ok!(statement.read::<Option<Vec<u8>>>(3)),
Some(vec![0x42, 0x69])
);
assert_eq!(ok!(statement.read::<Option<String>>(4)), None);
assert_eq!(ok!(statement.next()), State::Done);
}