Jelajahi Sumber

Remove #![feature(std_misc)]

Simon Sapin 11 tahun lalu
induk
melakukan
23228e7c38
3 mengubah file dengan 4 tambahan dan 4 penghapusan
  1. 1 1
      Cargo.toml
  2. 2 2
      src/host.rs
  3. 1 1
      src/lib.rs

+ 1 - 1
Cargo.toml

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

+ 2 - 2
src/host.rs

@@ -6,7 +6,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-use std::ascii::{AsciiExt, OwnedAsciiExt};
+use std::ascii::AsciiExt;
 use std::cmp;
 use std::fmt::{self, Formatter};
 use parser::{ParseResult, ParseError};
@@ -63,7 +63,7 @@ impl Host {
             ][..]).is_some() {
                 Err(ParseError::InvalidDomainCharacter)
             } else {
-                Ok(Host::Domain(domain.to_string().into_ascii_lowercase()))
+                Ok(Host::Domain(domain.to_ascii_lowercase()))
             }
         }
     }

+ 1 - 1
src/lib.rs

@@ -119,7 +119,7 @@ assert!(css_url.serialize() == "http://servo.github.io/rust-url/main.css".to_str
 */
 
 
-#![feature(std_misc, convert)]
+#![feature(convert)]
 
 extern crate rustc_serialize;