diff --git a/tests/any/any.rs b/tests/any/any.rs index dec1d509d8..391b76b389 100644 --- a/tests/any/any.rs +++ b/tests/any/any.rs @@ -54,18 +54,16 @@ async fn it_has_chrono_fixed_offset() -> anyhow::Result<()> { use sqlx_oldapi::types::chrono::{DateTime, FixedOffset}; assert_eq!( DateTime::::parse_from_rfc3339("2020-01-02T12:00:00+02:00").unwrap(), - get_val::>( - if cfg!(feature = "sqlite") { - "'2020-01-02 12:00:00+02:00'" - } else if cfg!(feature = "mssql") { - "CAST('2020-01-02 12:00:00+02:00' AS DATETIMEOFFSET)" - } else if cfg!(feature = "postgres") { - "'2020-01-02 12:00:00+02:00'::timestamptz" - } else { - eprintln!("DBMS not supported"); - return Ok(()) - } - ) + get_val::>(if cfg!(feature = "sqlite") { + "'2020-01-02 12:00:00+02:00'" + } else if cfg!(feature = "mssql") { + "CAST('2020-01-02 12:00:00+02:00' AS DATETIMEOFFSET)" + } else if cfg!(feature = "postgres") { + "'2020-01-02 12:00:00+02:00'::timestamptz" + } else { + eprintln!("DBMS not supported"); + return Ok(()); + }) .await? ); Ok(())