Skip to content

Commit dd068e5

Browse files
author
bors-servo
authored
Auto merge of #370 - KiChjang:heapsizeof-parse-error, r=SimonSapin
Add HeapSizeOf impl for ParseError <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/rust-url/370) <!-- Reviewable:end -->
2 parents a12715b + aea2ae2 commit dd068e5

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
name = "url"
44
# When updating version, also modify html_root_url in the lib.rs
5-
version = "1.5.0"
5+
version = "1.5.1"
66
authors = ["The rust-url developers"]
77

88
description = "URL library for Rust, based on the WHATWG URL Standard"

src/parser.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ simple_enum_error! {
5757
Overflow => "URLs more than 4 GB are not supported",
5858
}
5959

60+
#[cfg(feature = "heapsize")]
61+
known_heap_size!(0, ParseError);
62+
6063
impl fmt::Display for ParseError {
6164
fn fmt(&self, fmt: &mut Formatter) -> fmt::Result {
6265
self.description().fmt(fmt)

0 commit comments

Comments
 (0)