Skip to content
This repository was archived by the owner on Jul 10, 2023. It is now read-only.

Commit 4bdd4e2

Browse files
committed
Add Ipv4Addr and Ipv6Addr for use in rust-url
1 parent e9bc1a5 commit 4bdd4e2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ use std::collections::hash_state;
1717
use std::hash::Hash;
1818
use std::marker::PhantomData;
1919
use std::mem::{size_of, transmute};
20+
use std::net::{Ipv4Addr, Ipv6Addr};
2021
use std::sync::Arc;
2122
use std::rc::Rc;
2223

@@ -258,4 +259,5 @@ macro_rules! known_heap_size(
258259
known_heap_size!(0, u8, u16, u32, u64, usize);
259260
known_heap_size!(0, i8, i16, i32, i64, isize);
260261
known_heap_size!(0, bool, f32, f64);
262+
known_heap_size!(0, Ipv4Addr, Ipv6Addr);
261263
known_heap_size!(0, PhantomData<T>);

0 commit comments

Comments
 (0)