diff options
author | Omnikar | 2022-01-23 07:37:23 +0000 |
---|---|---|
committer | GitHub | 2022-01-23 07:37:23 +0000 |
commit | f064894e5778071ef8cc563380f48cfdd9acba59 (patch) | |
tree | 18eb4c743e04f6b83268664ea869f3bbc676a2e2 /helix-core/src/history.rs | |
parent | e2d2f19fd02419b8d144ae7a8a359d31bd773af7 (diff) |
Fix Clippy lints in tests (#1563)
Co-authored-by: Blaž Hrastnik <blaz@mxxn.io>
Diffstat (limited to 'helix-core/src/history.rs')
-rw-r--r-- | helix-core/src/history.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/helix-core/src/history.rs b/helix-core/src/history.rs index 4b1c8d3b..bb95213c 100644 --- a/helix-core/src/history.rs +++ b/helix-core/src/history.rs @@ -448,8 +448,8 @@ mod test { change: crate::transaction::Change, instant: Instant, ) { - let txn = Transaction::change(&state.doc, vec![change.clone()].into_iter()); - history.commit_revision_at_timestamp(&txn, &state, instant); + let txn = Transaction::change(&state.doc, vec![change].into_iter()); + history.commit_revision_at_timestamp(&txn, state, instant); txn.apply(&mut state.doc); } |