Skip to content

Commit 6665a43

Browse files
committed
Fix nit
1 parent 5c98737 commit 6665a43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_typeck/src/check/generator_interior/drop_ranges/record_consumed_borrow.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ impl<'tcx> expr_use_visitor::Delegate<'tcx> for ExprUseDelegate<'tcx> {
182182
debug!("mutate {assignee_place:?}; diag_expr_id={diag_expr_id:?}");
183183

184184
if assignee_place.place.base == PlaceBase::Rvalue
185-
&& assignee_place.place.projections.len() == 0
185+
&& assignee_place.place.projections.is_empty()
186186
{
187187
// Assigning to an Rvalue is illegal unless done through a dereference. We would have
188188
// already gotten a type error, so we will just return here.

0 commit comments

Comments
 (0)