We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a12715b commit 7d88af1Copy full SHA for 7d88af1
src/parser.rs
@@ -13,6 +13,7 @@ use std::str;
13
14
use Url;
15
use encoding::EncodingOverride;
16
+#![cfg(feature = "heapsize")] use heapsize::HeapSizeOf;
17
use host::{Host, HostInternal};
18
use percent_encoding::{
19
utf8_percent_encode, percent_encode,
@@ -57,6 +58,13 @@ simple_enum_error! {
57
58
Overflow => "URLs more than 4 GB are not supported",
59
}
60
61
+#![cfg(feature = "heapsize")]
62
+impl HeapSizeOf for ParseError {
63
+ fn heap_size_of_children(&self) -> usize {
64
+ 0
65
+ }
66
+}
67
+
68
impl fmt::Display for ParseError {
69
fn fmt(&self, fmt: &mut Formatter) -> fmt::Result {
70
self.description().fmt(fmt)
0 commit comments