WorkerId changed to type UUID.

This commit is contained in:
Kunal Mohan 2019-12-09 23:42:00 +05:30
parent 5c56e661ca
commit d5475fbc9f
No known key found for this signature in database
GPG key ID: 2B475A4524237BAC
9 changed files with 19 additions and 18 deletions

View file

@ -47,3 +47,4 @@ url = { version = "2.0", optional = true }
webrender_api = { git = "https://github.com/servo/webrender", optional = true }
xml5ever = { version = "0.16", optional = true }
void = "1.0.2"
uuid = {version = "0.8", features = ["v4", "serde"]}

View file

@ -75,6 +75,7 @@ extern crate thin_slice;
extern crate time;
#[cfg(feature = "url")]
extern crate url;
extern crate uuid;
extern crate void;
#[cfg(feature = "webrender_api")]
extern crate webrender_api;
@ -90,6 +91,7 @@ use std::mem::size_of;
use std::ops::Range;
use std::ops::{Deref, DerefMut};
use std::os::raw::c_void;
use uuid::Uuid;
use void::Void;
/// A C function that takes a pointer to a heap allocation and returns its size.
@ -820,7 +822,7 @@ macro_rules! malloc_size_of_is_0(
);
);
malloc_size_of_is_0!(bool, char, str);
malloc_size_of_is_0!(bool, char, str, Uuid);
malloc_size_of_is_0!(u8, u16, u32, u64, u128, usize);
malloc_size_of_is_0!(i8, i16, i32, i64, i128, isize);
malloc_size_of_is_0!(f32, f64);