Skip to content

Commit ef40dcd

Browse files
committed
Add HeapSizeOf impl for ParseError
1 parent a12715b commit ef40dcd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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)