Skip to content

Commit 41b7a4f

Browse files
committed
switch to a tree-based rope impl and remove rope benchmarks
1 parent 20444e6 commit 41b7a4f

File tree

5 files changed

+433
-891
lines changed

5 files changed

+433
-891
lines changed

.github/workflows/rust.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
on: [push]
1+
on: [push, pull_request]
22

33
name: CI
44

benchmarks/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ edition = "2021"
77

88
[dependencies]
99
assert_unordered = "0.3.5"
10-
structdiff = { path = "..", features = ["serde", "debug_diffs", "__rope_benchmarks"] }
10+
structdiff = { path = "..", features = ["serde", "debug_diffs"] }
1111
nanorand = { version = "0.7.0" }
1212
diff-struct = { version = "0.5.3", optional = true}
1313
serde = { version = "^1.0.0", features = ["derive"] }

src/collections/ordered_array_like.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -223,11 +223,7 @@ fn create_last_change_row<'src, 'target: 'src, T: Clone + PartialEq + 'target>(
223223
debug_assert_eq!(
224224
target_start <= target_end,
225225
source_start <= source_end,
226-
"\ntarget start: {}\ntarget end: {}\nsource start: {}\nsource end: {}",
227-
target_start,
228-
target_end,
229-
source_start,
230-
source_end
226+
"\ntarget start: {target_start}\ntarget end: {target_end}\nsource start: {source_start}\nsource end: {source_end}",
231227
);
232228

233229
let mut table = std::array::from_fn::<_, 2, _>(|_| {

0 commit comments

Comments
 (0)