Skip to content

Commit 4ce15bf

Browse files
committed
fix: unnecessary cfg
1 parent 42358a3 commit 4ce15bf

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

sqlx-postgres/src/type_checking.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,12 @@ impl_type_checking!(
7777
#[cfg(feature = "rust_decimal")]
7878
sqlx::types::Decimal,
7979

80-
#[cfg(all(feature = "ipnet", not(feature = "ipnetwork")))]
81-
sqlx::types::ipnet::IpNet,
82-
8380
#[cfg(feature = "ipnetwork")]
8481
sqlx::types::ipnetwork::IpNetwork,
8582

83+
#[cfg(feature = "ipnet")]
84+
sqlx::types::ipnet::IpNet,
85+
8686
#[cfg(feature = "mac_address")]
8787
sqlx::types::mac_address::MacAddress,
8888

@@ -141,12 +141,12 @@ impl_type_checking!(
141141
#[cfg(feature = "rust_decimal")]
142142
Vec<sqlx::types::Decimal> | &[sqlx::types::Decimal],
143143

144-
#[cfg(all(feature = "ipnet", not(feature = "ipnetwork")))]
145-
Vec<sqlx::types::ipnet::IpNet> | &[sqlx::types::ipnet::IpNet],
146-
147144
#[cfg(feature = "ipnetwork")]
148145
Vec<sqlx::types::ipnetwork::IpNetwork> | &[sqlx::types::ipnetwork::IpNetwork],
149146

147+
#[cfg(feature = "ipnet")]
148+
Vec<sqlx::types::ipnet::IpNet> | &[sqlx::types::ipnet::IpNet],
149+
150150
#[cfg(feature = "mac_address")]
151151
Vec<sqlx::types::mac_address::MacAddress> | &[sqlx::types::mac_address::MacAddress],
152152

0 commit comments

Comments
 (0)