Delete attr support from core::net deserialization macros

This commit is contained in:
David Tolnay 2024-09-06 11:05:00 -07:00
parent 26fb134165
commit 4c0dd63011
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82

View File

@ -1586,10 +1586,8 @@ map_impl! {
#[cfg(any(feature = "std", not(no_core_net)))]
macro_rules! parse_ip_impl {
(
$(#[$attr:meta])*
$ty:ty, $expecting:expr, $size:tt
) => {
$(#[$attr])*
impl<'de> Deserialize<'de> for $ty {
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>
where
@ -1749,11 +1747,9 @@ parse_ip_impl! {
#[cfg(any(feature = "std", not(no_core_net)))]
macro_rules! parse_socket_impl {
(
$(#[$attr:meta])*
$ty:ty, $expecting:tt,
$new:expr,
) => {
$(#[$attr])*
impl<'de> Deserialize<'de> for $ty {
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>
where