From ef40dcd684a26507b981ecc34a63e309192acda2 Mon Sep 17 00:00:00 2001 From: Keith Yeung Date: Sat, 24 Jun 2017 21:49:48 -0700 Subject: [PATCH 1/2] Add HeapSizeOf impl for ParseError --- src/parser.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/parser.rs b/src/parser.rs index 8b019bb48..ead0aa9cc 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -57,6 +57,9 @@ simple_enum_error! { Overflow => "URLs more than 4 GB are not supported", } +#[cfg(feature = "heapsize")] +known_heap_size!(0, ParseError); + impl fmt::Display for ParseError { fn fmt(&self, fmt: &mut Formatter) -> fmt::Result { self.description().fmt(fmt) From aea2ae24d22fd34fe85c21965a8e54378773d0f9 Mon Sep 17 00:00:00 2001 From: Keith Yeung Date: Sun, 25 Jun 2017 00:15:35 -0700 Subject: [PATCH 2/2] Version bump --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 5bdf85ff2..b025ad2b9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,7 +2,7 @@ name = "url" # When updating version, also modify html_root_url in the lib.rs -version = "1.5.0" +version = "1.5.1" authors = ["The rust-url developers"] description = "URL library for Rust, based on the WHATWG URL Standard"