Skip to content

Commit

Permalink
Delete attr support from core::net deserialization macros
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Sep 6, 2024
1 parent 26fb134 commit 4c0dd63
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions serde/src/de/impls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 4c0dd63

Please sign in to comment.