Skip to content

Commit

Permalink
Merge pull request #31 from WesleyAC/ip-addr-impls
Browse files Browse the repository at this point in the history
Add impls for Ipv4Addr and Ipv6Addr.
  • Loading branch information
dbeckwith authored Feb 9, 2024
2 parents 73fd244 + 806795a commit e4b632f
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 e4b632f

Please sign in to comment.