mirror of
https://github.com/serde-rs/serde.git
synced 2025-09-28 21:41:24 +00:00
Delete attr support from core::net deserialization macros
This commit is contained in:
parent
26fb134165
commit
4c0dd63011
@ -1586,10 +1586,8 @@ map_impl! {
|
|||||||
#[cfg(any(feature = "std", not(no_core_net)))]
|
#[cfg(any(feature = "std", not(no_core_net)))]
|
||||||
macro_rules! parse_ip_impl {
|
macro_rules! parse_ip_impl {
|
||||||
(
|
(
|
||||||
$(#[$attr:meta])*
|
|
||||||
$ty:ty, $expecting:expr, $size:tt
|
$ty:ty, $expecting:expr, $size:tt
|
||||||
) => {
|
) => {
|
||||||
$(#[$attr])*
|
|
||||||
impl<'de> Deserialize<'de> for $ty {
|
impl<'de> Deserialize<'de> for $ty {
|
||||||
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>
|
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>
|
||||||
where
|
where
|
||||||
@ -1749,11 +1747,9 @@ parse_ip_impl! {
|
|||||||
#[cfg(any(feature = "std", not(no_core_net)))]
|
#[cfg(any(feature = "std", not(no_core_net)))]
|
||||||
macro_rules! parse_socket_impl {
|
macro_rules! parse_socket_impl {
|
||||||
(
|
(
|
||||||
$(#[$attr:meta])*
|
|
||||||
$ty:ty, $expecting:tt,
|
$ty:ty, $expecting:tt,
|
||||||
$new:expr,
|
$new:expr,
|
||||||
) => {
|
) => {
|
||||||
$(#[$attr])*
|
|
||||||
impl<'de> Deserialize<'de> for $ty {
|
impl<'de> Deserialize<'de> for $ty {
|
||||||
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>
|
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>
|
||||||
where
|
where
|
||||||
|
Loading…
x
Reference in New Issue
Block a user