about summary refs log tree commit diff
path: root/src/libextra
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2013-07-09 17:25:28 -0700
committerAlex Crichton <alex@alexcrichton.com>2013-07-09 17:39:49 -0700
commitcb5b9a477ccd2d04f549e1107af350749d414bba (patch)
tree3ff1cd70a4786c9dafc3b7d301bd40d5db119994 /src/libextra
parent5c3a2e7eeb1e553c7fc06a012862d99094faa03f (diff)
downloadrust-cb5b9a477ccd2d04f549e1107af350749d414bba.tar.gz
rust-cb5b9a477ccd2d04f549e1107af350749d414bba.zip
Rename local_data methods/types for less keystrokes
Diffstat (limited to 'src/libextra')
-rw-r--r--src/libextra/rl.rs4
-rw-r--r--src/libextra/sort.rs4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/libextra/rl.rs b/src/libextra/rl.rs
index 693e3ecb53f..210c6593a18 100644
--- a/src/libextra/rl.rs
+++ b/src/libextra/rl.rs
@@ -72,11 +72,11 @@ fn complete_key(_v: @CompletionCb) {}
 
 /// Bind to the main completion callback
 pub unsafe fn complete(cb: CompletionCb) {
-    local_data::local_data_set(complete_key, @(cb));
+    local_data::set(complete_key, @(cb));
 
     extern fn callback(line: *c_char, completions: *()) {
         unsafe {
-            let cb = *local_data::local_data_get(complete_key)
+            let cb = *local_data::get(complete_key)
                 .get();
 
             do cb(str::raw::from_c_str(line)) |suggestion| {
diff --git a/src/libextra/sort.rs b/src/libextra/sort.rs
index 68a678869da..50fa9c35d7e 100644
--- a/src/libextra/sort.rs
+++ b/src/libextra/sort.rs
@@ -1204,11 +1204,11 @@ mod big_tests {
     #[unsafe_destructor]
     impl<'self> Drop for LVal<'self> {
         fn drop(&self) {
-            let x = unsafe { local_data::local_data_get(self.key) };
+            let x = unsafe { local_data::get(self.key) };
             match x {
                 Some(@y) => {
                     unsafe {
-                        local_data::local_data_set(self.key, @(y+1));
+                        local_data::set(self.key, @(y+1));
                     }
                 }
                 _ => fail!("Expected key to work"),