convert syntax::attr to use @~strs
This commit is contained in:
parent
1808d747f6
commit
a2b754788d
16 changed files with 130 additions and 132 deletions
|
@ -114,7 +114,7 @@ pub fn expand_auto_encode(
|
|||
in_items: ~[@ast::item]
|
||||
) -> ~[@ast::item] {
|
||||
fn is_auto_encode(a: &ast::attribute) -> bool {
|
||||
attr::get_attr_name(a) == ~"auto_encode"
|
||||
*attr::get_attr_name(a) == ~"auto_encode"
|
||||
}
|
||||
|
||||
fn filter_attrs(item: @ast::item) -> @ast::item {
|
||||
|
@ -169,7 +169,7 @@ pub fn expand_auto_decode(
|
|||
in_items: ~[@ast::item]
|
||||
) -> ~[@ast::item] {
|
||||
fn is_auto_decode(a: &ast::attribute) -> bool {
|
||||
attr::get_attr_name(a) == ~"auto_decode"
|
||||
*attr::get_attr_name(a) == ~"auto_decode"
|
||||
}
|
||||
|
||||
fn filter_attrs(item: @ast::item) -> @ast::item {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue