about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorDaniel Micay <danielmicay@gmail.com>2013-01-23 11:08:33 -0500
committerDaniel Micay <danielmicay@gmail.com>2013-01-23 14:25:06 -0500
commit203fcbd0f360fdae9db551bf63e14fe152150cc9 (patch)
tree6dc731f43ab9f703e52bdb6091e0c859e1569689 /src/libstd
parentbc96fe9c4995bcf28e084e3a84293ebbf47f84d4 (diff)
downloadrust-203fcbd0f360fdae9db551bf63e14fe152150cc9.tar.gz
rust-203fcbd0f360fdae9db551bf63e14fe152150cc9.zip
rename hashmap find/get -> find_copy/get_copy
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/net_url.rs8
-rw-r--r--src/libstd/workcache.rs4
2 files changed, 3 insertions, 9 deletions
diff --git a/src/libstd/net_url.rs b/src/libstd/net_url.rs
index 5d20fcf7f91..97ab5c139c1 100644
--- a/src/libstd/net_url.rs
+++ b/src/libstd/net_url.rs
@@ -11,9 +11,6 @@
 //! Types/fns concerning URLs (see RFC 3986)
 #[forbid(deprecated_mode)];
 
-use map;
-use map::HashMap;
-
 use core::cmp::Eq;
 use core::dvec::DVec;
 use core::from_str::FromStr;
@@ -21,7 +18,6 @@ use core::io::{Reader, ReaderUtil};
 use core::io;
 use core::prelude::*;
 use core::hashmap::linear::LinearMap;
-use core::hashmap;
 use core::str;
 use core::to_bytes::IterBytes;
 use core::to_bytes;
@@ -244,9 +240,7 @@ pub fn encode_form_urlencoded(m: &LinearMap<~str, ~[~str]>) -> ~str {
  * Decode a string encoded with the 'application/x-www-form-urlencoded' media
  * type into a hashmap.
  */
-pub fn decode_form_urlencoded(
-    s: &[u8]
-) -> hashmap::linear::LinearMap<~str, ~[~str]> {
+pub fn decode_form_urlencoded(s: &[u8]) -> LinearMap<~str, ~[~str]> {
     do io::with_bytes_reader(s) |rdr| {
         let mut m = LinearMap();
         let mut key = ~"";
diff --git a/src/libstd/workcache.rs b/src/libstd/workcache.rs
index caf460a9be9..18b30f72ef0 100644
--- a/src/libstd/workcache.rs
+++ b/src/libstd/workcache.rs
@@ -173,7 +173,7 @@ impl Database {
                declared_inputs: &WorkMap) ->
         Option<(WorkMap, WorkMap, ~str)> {
         let k = json_encode(&(fn_name, declared_inputs));
-        match self.db_cache.find(&k) {
+        match self.db_cache.find_copy(&k) {
             None => None,
             Some(v) => Some(json_decode(v))
         }
@@ -297,7 +297,7 @@ impl @Mut<Prep> : TPrep {
                 name: &str, val: &str) -> bool {
         do self.borrow_imm |p| {
             let k = kind.to_owned();
-            let f = (p.ctxt.freshness.get(&k))(name, val);
+            let f = (*p.ctxt.freshness.get_ref(&k))(name, val);
             do p.ctxt.logger.borrow_imm |lg| {
                 if f {
                     lg.info(fmt!("%s %s:%s is fresh",