File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1557,7 +1557,7 @@ unsafe fn local_set<T: Owned>(
1557
1557
}
1558
1558
None => {
1559
1559
// Find an empty slot. If not, grow the vector.
1560
- match ( * map) . position( |x| x. is_None ( ) ) {
1560
+ match ( * map) . position( |x| x. is_none ( ) ) {
1561
1561
Some ( empty_index) => ( * map) . set_elt( empty_index, new_entry) ,
1562
1562
None => ( * map) . push( new_entry)
1563
1563
}
@@ -2280,7 +2280,7 @@ fn test_tls_multitask() unsafe {
2280
2280
fn my_key(+_x: @~str) { }
2281
2281
local_data_set(my_key, @~" parent data") ;
2282
2282
do task:: spawn unsafe {
2283
- assert local_data_get( my_key) . is_None ( ) ; // TLS shouldn't carry over.
2283
+ assert local_data_get( my_key) . is_none ( ) ; // TLS shouldn't carry over.
2284
2284
local_data_set( my_key, @~"child data") ;
2285
2285
assert * ( local_data_get( my_key) . get( ) ) == ~"child data";
2286
2286
// should be cleaned up for us
@@ -2305,7 +2305,7 @@ fn test_tls_pop() unsafe {
2305
2305
local_data_set( my_key, @~"weasel") ;
2306
2306
assert * ( local_data_pop( my_key) . get( ) ) == ~"weasel";
2307
2307
// Pop must remove the data from the map.
2308
- assert local_data_pop( my_key) . is_None ( ) ;
2308
+ assert local_data_pop( my_key) . is_none ( ) ;
2309
2309
}
2310
2310
2311
2311
#[ test]
You can’t perform that action at this time.
0 commit comments