Skip to content

Commit 1cb9c25

Browse files
Update clippy_lints/src/unnecessary_reserve.rs
Co-authored-by: Alex <[email protected]>
1 parent cf56250 commit 1cb9c25

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

clippy_lints/src/unnecessary_reserve.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,8 @@ fn check_extend_method(
140140
fn equal_ident(left: &rustc_hir::Expr<'_>, right: &rustc_hir::Expr<'_>) -> bool {
141141
fn ident_name(expr: &rustc_hir::Expr<'_>) -> Option<rustc_span::Symbol> {
142142
if let ExprKind::Path(QPath::Resolved(None, inner_path)) = expr.kind
143-
&& let [inner_seg] = inner_path.segments {
143+
&& let [inner_seg] = inner_path.segments
144+
{
144145
return Some(inner_seg.ident.name);
145146
}
146147
None

0 commit comments

Comments
 (0)