Kaynağa Gözat

Upgrade to rustc 0a4c136d6 2014-09-23. Fix #31, close #32.

Simon Sapin 12 yıl önce
ebeveyn
işleme
29f70a4723
2 değiştirilmiş dosya ile 3 ekleme ve 3 silme
  1. 1 1
      src/form_urlencoded.rs
  2. 2 2
      src/lib.rs

+ 1 - 1
src/form_urlencoded.rs

@@ -151,5 +151,5 @@ fn test_form_urlencoded() {
     ];
     let encoded = serialize_owned(pairs.as_slice());
     assert_eq!(encoded.as_slice(), "foo=%C3%A9%26&bar=&foo=%23");
-    assert_eq!(parse_str(encoded.as_slice()), Vec::from_slice(pairs.as_slice()));
+    assert_eq!(parse_str(encoded.as_slice()), pairs.as_slice().to_vec());
 }

+ 2 - 2
src/lib.rs

@@ -918,7 +918,7 @@ impl Show for UrlRelativeSchemeData {
 }
 
 
-trait ToUrlPath {
+pub trait ToUrlPath {
     fn to_url_path(&self) -> Result<Vec<String>, ()>;
 }
 
@@ -953,7 +953,7 @@ impl ToUrlPath for path::windows::Path {
 }
 
 
-trait FromUrlPath {
+pub trait FromUrlPath {
     fn from_url_path(path: &[String]) -> Result<Self, ()>;
 }