File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -196,7 +196,7 @@ fn visit_item(e: @mut Env, i: @ast::item) {
196
196
for link_args. each |a| {
197
197
match attr:: get_meta_item_value_str ( attr:: attr_meta ( * a) ) {
198
198
Some ( ref linkarg) => {
199
- cstore:: add_used_link_args ( cstore, ( /*bad*/ copy * linkarg) ) ;
199
+ cstore:: add_used_link_args ( cstore, * linkarg) ;
200
200
}
201
201
None => { /* fallthrough */ }
202
202
}
Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ pub fn get_used_libraries(cstore: @mut CStore) -> ~[~str] {
119
119
return /*bad*/ copy cstore. used_libraries ;
120
120
}
121
121
122
- pub fn add_used_link_args ( cstore : @mut CStore , args : ~ str ) {
122
+ pub fn add_used_link_args ( cstore : @mut CStore , args : & str ) {
123
123
cstore. used_link_args . push_all ( str:: split_char ( args, ' ' ) ) ;
124
124
}
125
125
You can’t perform that action at this time.
0 commit comments