Pārlūkot izejas kodu

Add HeapSizeOf impl for ParseError

Keith Yeung 9 gadi atpakaļ
vecāks
revīzija
ef40dcd684
1 mainītis faili ar 3 papildinājumiem un 0 dzēšanām
  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)