Merge commit '0eff589afc
' into clippyup
This commit is contained in:
parent
01217f6f4c
commit
97ab44ca97
80 changed files with 1573 additions and 519 deletions
|
@ -441,7 +441,7 @@ fn is_empty_string(expr: &Expr<'_>) -> bool {
|
|||
if let ExprKind::Lit(ref lit) = expr.kind {
|
||||
if let LitKind::Str(lit, _) = lit.node {
|
||||
let lit = lit.as_str();
|
||||
return lit == "";
|
||||
return lit.is_empty();
|
||||
}
|
||||
}
|
||||
false
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue