Просмотр исходного кода

Add HeapSizeOf impl for ParseError

Keith Yeung 9 лет назад
Родитель
Сommit
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)