Ver código fonte

Remove deprecated re-exports. Upgrade to rustc 1.0.0-nightly (2baf34825 2015-04-21) (built 2015-04-22)

Closes #94.
Simon Sapin 11 anos atrás
pai
commit
54b97f14bd
2 arquivos alterados com 3 adições e 7 exclusões
  1. 1 1
      Cargo.toml
  2. 2 6
      src/lib.rs

+ 1 - 1
Cargo.toml

@@ -1,7 +1,7 @@
 [package]
 
 name = "url"
-version = "0.2.29"
+version = "0.2.30"
 authors = [ "Simon Sapin <simon.sapin@exyr.org>" ]
 
 description = "URL parser for Rust"

+ 2 - 6
src/lib.rs

@@ -130,12 +130,8 @@ use std::path::{Path, PathBuf};
 pub use host::{Host, Ipv6Address};
 pub use parser::{ErrorHandler, ParseResult, ParseError};
 
-#[deprecated = "Moved to the `percent_encoding` module"]
-pub use percent_encoding::{
-    percent_decode, percent_decode_to, percent_encode, percent_encode_to,
-    utf8_percent_encode, utf8_percent_encode_to, lossy_utf8_percent_decode,
-    SIMPLE_ENCODE_SET, QUERY_ENCODE_SET, DEFAULT_ENCODE_SET, USERINFO_ENCODE_SET,
-    PASSWORD_ENCODE_SET, USERNAME_ENCODE_SET, FORM_URLENCODED_ENCODE_SET, EncodeSet,
+use percent_encoding::{
+    percent_decode_to, percent_encode, lossy_utf8_percent_decode, DEFAULT_ENCODE_SET,
 };
 
 use format::{PathFormatter, UserInfoFormatter, UrlNoFragmentFormatter};