Skip to content

Commit

Permalink
Add impls for Ipv4Addr and Ipv6Addr.
Browse files Browse the repository at this point in the history
  • Loading branch information
WesleyAC committed Feb 8, 2024
1 parent 73fd244 commit 806795a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/impls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ impl_native!(std::ffi::OsStr, "string");
#[cfg(feature = "json_value")]
impl_native!(serde_json::Number, "number");
impl_native!(std::net::IpAddr, "string");
impl_native!(std::net::Ipv4Addr, "string");
impl_native!(std::net::Ipv6Addr, "string");

macro_rules! impl_number {
($ty:ty, $name:ident) => {
Expand Down

0 comments on commit 806795a

Please sign in to comment.