Negative case of len() -> is_empty()

`s/([^\(\s]+\.)len\(\) [(?:!=)>] 0/!$1is_empty()/g`
This commit is contained in:
Tamir Duberstein
2015-03-24 16:54:09 -07:00
parent 29ac04402d
commit 10f15e72e6
61 changed files with 142 additions and 142 deletions

View File

@@ -804,7 +804,7 @@ fn format_option(opt: &OptGroup) -> String {
}
// Use short_name is possible, but fallback to long_name.
if opt.short_name.len() > 0 {
if !opt.short_name.is_empty() {
line.push('-');
line.push_str(&opt.short_name[..]);
} else {