Przeglądaj źródła

Merge pull request #92 from alexcrichton/beta

Prep for beta
Simon Sapin 11 lat temu
rodzic
commit
35f1a833ea
3 zmienionych plików z 3 dodań i 6 usunięć
  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],
 }