Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/ide-diagnostics/src/handlers/break_outside_of_loop.rs')
| -rw-r--r-- | crates/ide-diagnostics/src/handlers/break_outside_of_loop.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ide-diagnostics/src/handlers/break_outside_of_loop.rs b/crates/ide-diagnostics/src/handlers/break_outside_of_loop.rs index 4910054038..c25b0a7bf7 100644 --- a/crates/ide-diagnostics/src/handlers/break_outside_of_loop.rs +++ b/crates/ide-diagnostics/src/handlers/break_outside_of_loop.rs @@ -17,7 +17,7 @@ pub(crate) fn break_outside_of_loop( ctx, DiagnosticCode::RustcHardError("E0268"), message, - d.expr.clone().map(|it| it.into()), + d.expr.map(|it| it.into()), ) } |