diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2013-07-09 17:25:28 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2013-07-09 17:39:49 -0700 |
| commit | cb5b9a477ccd2d04f549e1107af350749d414bba (patch) | |
| tree | 3ff1cd70a4786c9dafc3b7d301bd40d5db119994 /src/libextra | |
| parent | 5c3a2e7eeb1e553c7fc06a012862d99094faa03f (diff) | |
| download | rust-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.rs | 4 | ||||
| -rw-r--r-- | src/libextra/sort.rs | 4 |
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"), |
