remove remaining is_not_empty functions/methods

This commit is contained in:
Daniel Micay
2013-01-24 23:24:57 -05:00
parent ec3f6e1932
commit e4337a9def
18 changed files with 17 additions and 54 deletions

View File

@@ -245,7 +245,7 @@ fn contains_name(metas: &[@ast::meta_item], name: &str) -> bool {
}
fn attrs_contains_name(attrs: &[ast::attribute], name: &str) -> bool {
vec::is_not_empty(find_attrs_by_name(attrs, name))
!find_attrs_by_name(attrs, name).is_empty()
}
fn first_attr_value_str_by_name(attrs: ~[ast::attribute], name: ~str)