We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cf56250 commit 1cb9c25Copy full SHA for 1cb9c25
clippy_lints/src/unnecessary_reserve.rs
@@ -140,7 +140,8 @@ fn check_extend_method(
140
fn equal_ident(left: &rustc_hir::Expr<'_>, right: &rustc_hir::Expr<'_>) -> bool {
141
fn ident_name(expr: &rustc_hir::Expr<'_>) -> Option<rustc_span::Symbol> {
142
if let ExprKind::Path(QPath::Resolved(None, inner_path)) = expr.kind
143
- && let [inner_seg] = inner_path.segments {
+ && let [inner_seg] = inner_path.segments
144
+ {
145
return Some(inner_seg.ident.name);
146
}
147
None
0 commit comments