mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-06-13 03:11:02 +00:00
Try to fix compilation on 1.13
This commit is contained in:
@@ -1007,7 +1007,7 @@ impl<'de> Deserialize<'de> for net::IpAddr {
|
|||||||
let s = try!(String::deserialize(deserializer));
|
let s = try!(String::deserialize(deserializer));
|
||||||
s.parse().map_err(Error::custom)
|
s.parse().map_err(Error::custom)
|
||||||
} else {
|
} else {
|
||||||
use self::net::IpAddr;
|
use lib::net::IpAddr;
|
||||||
deserialize_enum!{
|
deserialize_enum!{
|
||||||
IpAddr IpAddrKind (V4; b"V4"; 0, V6; b"V6"; 1)
|
IpAddr IpAddrKind (V4; b"V4"; 0, V6; b"V6"; 1)
|
||||||
"`V4` or `V6`",
|
"`V4` or `V6`",
|
||||||
@@ -1052,7 +1052,7 @@ impl<'de> Deserialize<'de> for net::SocketAddr {
|
|||||||
let s = try!(String::deserialize(deserializer));
|
let s = try!(String::deserialize(deserializer));
|
||||||
s.parse().map_err(Error::custom)
|
s.parse().map_err(Error::custom)
|
||||||
} else {
|
} else {
|
||||||
use self::net::SocketAddr;
|
use lib::net::SocketAddr;
|
||||||
deserialize_enum!{
|
deserialize_enum!{
|
||||||
SocketAddr SocketAddrKind (V4; b"V4"; 0, V6; b"V6"; 1)
|
SocketAddr SocketAddrKind (V4; b"V4"; 0, V6; b"V6"; 1)
|
||||||
"`V4` or `V6`",
|
"`V4` or `V6`",
|
||||||
|
|||||||
Reference in New Issue
Block a user