We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ffdce0 commit dd97c1eCopy full SHA for dd97c1e
clippy_utils/src/sugg.rs
@@ -155,8 +155,8 @@ impl<'a> Sugg<'a> {
155
| hir::ExprKind::Ret(..)
156
| hir::ExprKind::Struct(..)
157
| hir::ExprKind::Tup(..)
158
- | hir::ExprKind::DropTemps(_)
159
| hir::ExprKind::Err => Sugg::NonParen(get_snippet(expr.span)),
+ hir::ExprKind::DropTemps(inner) => Self::hir_from_snippet(inner, get_snippet),
160
hir::ExprKind::Assign(lhs, rhs, _) => {
161
Sugg::BinOp(AssocOp::Assign, get_snippet(lhs.span), get_snippet(rhs.span))
162
},
0 commit comments