Enable clippy::eq_op (#9369)

This PR enables the
[`clippy::eq_op`](https://rust-lang.github.io/rust-clippy/master/index.html#/eq_op)
rule and fixes the outstanding violations.

Enabling this rule seems to have caught two bugs!

Release Notes:

- N/A
This commit is contained in:
Marshall Bowers
2024-03-14 17:05:07 -04:00
committed by GitHub
parent 404adbce5b
commit 14cdafb0a8
4 changed files with 4 additions and 5 deletions
@@ -148,7 +148,7 @@ impl SyntaxTreeView {
if did_reparse {
prev_layer = buffer_state.active_layer.take();
}
if buffer_state.buffer != buffer || buffer_state.excerpt_id != buffer_state.excerpt_id {
if buffer_state.buffer != buffer || buffer_state.excerpt_id != excerpt_id {
buffer_state.buffer = buffer.clone();
buffer_state.excerpt_id = excerpt_id;
buffer_state.active_layer = None;