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

Prep for beta

Add some derive(Clone) and remove the unnecessary convert feature
Alex Crichton 11 лет назад
Родитель
Сommit
adaa81ec97
3 измененных файлов с 3 добавлено и 6 удалено
  1. 1 1
      src/encoding.rs
  2. 1 4
      src/lib.rs
  3. 1 1
      src/percent_encoding.rs

+ 1 - 1
src/encoding.rs

@@ -70,7 +70,7 @@ impl EncodingOverride {
 
 
 #[cfg(not(feature = "query_encoding"))]
-#[derive(Copy)]
+#[derive(Copy, Clone)]
 pub struct EncodingOverride;
 
 #[cfg(not(feature = "query_encoding"))]

+ 1 - 4
src/lib.rs

@@ -118,9 +118,6 @@ assert!(css_url.serialize() == "http://servo.github.io/rust-url/main.css".to_str
 
 */
 
-
-#![feature(convert)]
-
 extern crate rustc_serialize;
 
 #[macro_use]
@@ -406,7 +403,7 @@ impl<'a> UrlParser<'a> {
 
 
 /// Determines the behavior of the URL parser for a given scheme.
-#[derive(PartialEq, Eq, Copy, Debug)]
+#[derive(PartialEq, Eq, Copy, Debug, Clone)]
 pub enum SchemeType {
     /// Indicate that the scheme is *non-relative*.
     ///

+ 1 - 1
src/percent_encoding.rs

@@ -27,7 +27,7 @@ mod encode_sets;
 /// If you need a different encode set,
 /// please [file a bug](https://github.com/servo/rust-url/issues)
 /// explaining the use case.
-#[derive(Copy)]
+#[derive(Copy, Clone)]
 pub struct EncodeSet {
     map: &'static [&'static str; 256],
 }