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

Commit f0a146c

Browse files
author
bors-servo
committed
Auto merge of #16 - pyfisch:ipaddr, r=Manishearth
Add Ipv4Addr and Ipv6Addr for use in rust-url Needed for servo/rust-url#135. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/heapsize/16) <!-- Reviewable:end -->
2 parents e9bc1a5 + c7015d6 commit f0a146c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "heapsize"
3-
version = "0.1.1"
3+
version = "0.1.2"
44
authors = [ "The Servo Project Developers" ]
55
description = "Infrastructure for measuring the total runtime size of an object on the heap"
66
license = "MPL-2.0"
@@ -11,4 +11,3 @@ unstable = []
1111

1212
[dependencies]
1313
libc = "0.1"
14-

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)