Explorar o código

Fix warning in rustc f09279395 2014-11-17.

Simon Sapin %!s(int64=12) %!d(string=hai) anos
pai
achega
6b1db42d92
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/punycode.rs

+ 1 - 1
src/punycode.rs

@@ -240,7 +240,7 @@ mod tests {
     }
 
     fn get_string<'a>(map: &'a JsonObject, key: &str) -> &'a str {
-        match map.find(&key.to_string()) {
+        match map.get(&key.to_string()) {
             Some(&String(ref s)) => s.as_slice(),
             None => "",
             _ => panic!(),