瀏覽代碼

Add HeapSizeOf impl for ParseError

Keith Yeung 9 年之前
父節點
當前提交
ef40dcd684
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      src/parser.rs

+ 3 - 0
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)