diff options
Diffstat (limited to 'crates/rust-analyzer/src/lsp_utils.rs')
-rw-r--r-- | crates/rust-analyzer/src/lsp_utils.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/rust-analyzer/src/lsp_utils.rs b/crates/rust-analyzer/src/lsp_utils.rs index 84f78b5b8..3ca7f8040 100644 --- a/crates/rust-analyzer/src/lsp_utils.rs +++ b/crates/rust-analyzer/src/lsp_utils.rs | |||
@@ -360,11 +360,11 @@ mod tests { | |||
360 | "Completion with disjoint edits is valid" | 360 | "Completion with disjoint edits is valid" |
361 | ); | 361 | ); |
362 | assert!( | 362 | assert!( |
363 | !all_edits_are_disjoint(&completion_with_disjoint_edits, &[joint_edit.clone()]), | 363 | !all_edits_are_disjoint(&completion_with_disjoint_edits, &[joint_edit]), |
364 | "Completion with disjoint edits and joint extra edit is invalid" | 364 | "Completion with disjoint edits and joint extra edit is invalid" |
365 | ); | 365 | ); |
366 | assert!( | 366 | assert!( |
367 | all_edits_are_disjoint(&completion_with_disjoint_edits, &[disjoint_edit_2.clone()]), | 367 | all_edits_are_disjoint(&completion_with_disjoint_edits, &[disjoint_edit_2]), |
368 | "Completion with disjoint edits and joint extra edit is valid" | 368 | "Completion with disjoint edits and joint extra edit is valid" |
369 | ); | 369 | ); |
370 | } | 370 | } |