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

Conditionally remove unused import.

Corey Farwell 9 лет назад
Родитель
Сommit
b1c947a86a
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/lib.rs

+ 1 - 1
src/lib.rs

@@ -126,7 +126,7 @@ use parser::{Parser, Context, SchemeType, to_u32};
 use percent_encoding::{PATH_SEGMENT_ENCODE_SET, USERINFO_ENCODE_SET,
                        percent_encode, percent_decode, utf8_percent_encode};
 use std::cmp;
-use std::error::Error;
+#[cfg(feature = "serde")] use std::error::Error;
 use std::fmt::{self, Write};
 use std::hash;
 use std::io;