about summary refs log tree commit diff
path: root/editors/code/src
diff options
context:
space:
mode:
authorRyan Cumming <etaoins@gmail.com>2019-06-25 21:36:55 +1000
committerRyan Cumming <etaoins@gmail.com>2019-06-25 21:36:55 +1000
commitd997fd8ea510f364719b51dc5d8a77b0fcf1b3d3 (patch)
tree69c3a2f08085ce856352beeae13014dbb2e459a3 /editors/code/src
parent6d6cb25cf46a2327d6cb2278385763abfa7a95a0 (diff)
downloadrust-d997fd8ea510f364719b51dc5d8a77b0fcf1b3d3.tar.gz
rust-d997fd8ea510f364719b51dc5d8a77b0fcf1b3d3.zip
Fix comparison of Code Action edit lengths
This happened to work because we always produce a single edit but this
is obviously dubious.
Diffstat (limited to 'editors/code/src')
-rw-r--r--editors/code/src/commands/cargo_watch.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/editors/code/src/commands/cargo_watch.ts b/editors/code/src/commands/cargo_watch.ts
index a662f7cc81d..126a8b1b3b8 100644
--- a/editors/code/src/commands/cargo_watch.ts
+++ b/editors/code/src/commands/cargo_watch.ts
@@ -212,7 +212,7 @@ export class CargoWatchProvider
             const leftEditEntries = left.edit.entries();
             const rightEditEntries = right.edit.entries();
 
-            if (leftEditEntries.length !== leftEditEntries.length) {
+            if (leftEditEntries.length !== rightEditEntries.length) {
                 return false;
             }