diff options
| author | Patrick Walton <pcwalton@mimiga.net> | 2013-02-20 17:07:17 -0800 |
|---|---|---|
| committer | Patrick Walton <pcwalton@mimiga.net> | 2013-02-20 21:14:20 -0800 |
| commit | bf2a225c0b6f90f61bcaf4a6f33d9eaf424795b6 (patch) | |
| tree | d321d9cab209f002e4236afd09d5d12fd640acc7 /src/libcore/task/local_data.rs | |
| parent | a307608781027d8c1b4c99bf1a8ac2c0d960a1bc (diff) | |
| download | rust-bf2a225c0b6f90f61bcaf4a6f33d9eaf424795b6.tar.gz rust-bf2a225c0b6f90f61bcaf4a6f33d9eaf424795b6.zip | |
librustc: Separate most trait bounds with '+'. rs=plussing
Diffstat (limited to 'src/libcore/task/local_data.rs')
| -rw-r--r-- | src/libcore/task/local_data.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libcore/task/local_data.rs b/src/libcore/task/local_data.rs index fe37a2e155f..ae101faaf02 100644 --- a/src/libcore/task/local_data.rs +++ b/src/libcore/task/local_data.rs @@ -51,7 +51,7 @@ pub type LocalDataKey<T> = &fn(v: @T); * Remove a task-local data value from the table, returning the * reference that was originally created to insert it. */ -pub unsafe fn local_data_pop<T: Durable>( +pub unsafe fn local_data_pop<T:Durable>( key: LocalDataKey<T>) -> Option<@T> { local_pop(rt::rust_get_task(), key) @@ -60,7 +60,7 @@ pub unsafe fn local_data_pop<T: Durable>( * Retrieve a task-local data value. It will also be kept alive in the * table until explicitly removed. */ -pub unsafe fn local_data_get<T: Durable>( +pub unsafe fn local_data_get<T:Durable>( key: LocalDataKey<T>) -> Option<@T> { local_get(rt::rust_get_task(), key) @@ -69,7 +69,7 @@ pub unsafe fn local_data_get<T: Durable>( * Store a value in task-local data. If this key already has a value, * that value is overwritten (and its destructor is run). */ -pub unsafe fn local_data_set<T: Durable>( +pub unsafe fn local_data_set<T:Durable>( key: LocalDataKey<T>, data: @T) { local_set(rt::rust_get_task(), key, data) @@ -78,7 +78,7 @@ pub unsafe fn local_data_set<T: Durable>( * Modify a task-local data value. If the function returns 'None', the * data is removed (and its reference dropped). */ -pub unsafe fn local_data_modify<T: Durable>( +pub unsafe fn local_data_modify<T:Durable>( key: LocalDataKey<T>, modify_fn: fn(Option<@T>) -> Option<@T>) { |
