diff --git a/crates/primitives/src/postgres.rs b/crates/primitives/src/postgres.rs index 6e4b87544..ed65aaf91 100644 --- a/crates/primitives/src/postgres.rs +++ b/crates/primitives/src/postgres.rs @@ -1,6 +1,6 @@ //! Support for the [`postgres_types`] crate. //! -//! **WARNING**: this module depends entirely on [`postgres_types`, which is not yet stable, +//! **WARNING**: this module depends entirely on [`postgres_types`], which is not yet stable, //! therefore this module is exempt from the semver guarantees of this crate. use super::{FixedBytes, Sign, Signed}; @@ -188,22 +188,26 @@ impl ToSql for Signed { } fn accepts(ty: &Type) -> bool { - matches!(*ty, |Type::BOOL| Type::CHAR - | Type::INT2 - | Type::INT4 - | Type::INT8 - | Type::OID - | Type::FLOAT4 - | Type::FLOAT8 - | Type::MONEY - | Type::NUMERIC - | Type::BYTEA - | Type::TEXT - | Type::VARCHAR - | Type::JSON - | Type::JSONB - | Type::BIT - | Type::VARBIT) + matches!( + *ty, + Type::BOOL + | Type::CHAR + | Type::INT2 + | Type::INT4 + | Type::INT8 + | Type::OID + | Type::FLOAT4 + | Type::FLOAT8 + | Type::MONEY + | Type::NUMERIC + | Type::BYTEA + | Type::TEXT + | Type::VARCHAR + | Type::JSON + | Type::JSONB + | Type::BIT + | Type::VARBIT + ) } to_sql_checked!();