Skip to content

Commit edec90b

Browse files
committed
fmt
1 parent f8de9be commit edec90b

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

tests/any/any.rs

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -54,18 +54,16 @@ async fn it_has_chrono_fixed_offset() -> anyhow::Result<()> {
5454
use sqlx_oldapi::types::chrono::{DateTime, FixedOffset};
5555
assert_eq!(
5656
DateTime::<FixedOffset>::parse_from_rfc3339("2020-01-02T12:00:00+02:00").unwrap(),
57-
get_val::<DateTime<FixedOffset>>(
58-
if cfg!(feature = "sqlite") {
59-
"'2020-01-02 12:00:00+02:00'"
60-
} else if cfg!(feature = "mssql") {
61-
"CAST('2020-01-02 12:00:00+02:00' AS DATETIMEOFFSET)"
62-
} else if cfg!(feature = "postgres") {
63-
"'2020-01-02 12:00:00+02:00'::timestamptz"
64-
} else {
65-
eprintln!("DBMS not supported");
66-
return Ok(())
67-
}
68-
)
57+
get_val::<DateTime<FixedOffset>>(if cfg!(feature = "sqlite") {
58+
"'2020-01-02 12:00:00+02:00'"
59+
} else if cfg!(feature = "mssql") {
60+
"CAST('2020-01-02 12:00:00+02:00' AS DATETIMEOFFSET)"
61+
} else if cfg!(feature = "postgres") {
62+
"'2020-01-02 12:00:00+02:00'::timestamptz"
63+
} else {
64+
eprintln!("DBMS not supported");
65+
return Ok(());
66+
})
6967
.await?
7068
);
7169
Ok(())

0 commit comments

Comments
 (0)