Browse Source

Conditionally remove unused import.

Corey Farwell 9 years ago
parent
commit
b1c947a86a
1 changed files with 1 additions and 1 deletions
  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,
 use percent_encoding::{PATH_SEGMENT_ENCODE_SET, USERINFO_ENCODE_SET,
                        percent_encode, percent_decode, utf8_percent_encode};
                        percent_encode, percent_decode, utf8_percent_encode};
 use std::cmp;
 use std::cmp;
-use std::error::Error;
+#[cfg(feature = "serde")] use std::error::Error;
 use std::fmt::{self, Write};
 use std::fmt::{self, Write};
 use std::hash;
 use std::hash;
 use std::io;
 use std::io;