Skip to content

Commit 8061a90

Browse files
committed
Imporove test's impl LenTextSize for BadRope
1 parent daa70c8 commit 8061a90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/constructors.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ struct BadRope<'a>(&'a [&'a str]);
88

99
impl LenTextSize for BadRope<'_> {
1010
fn len_text_size(self) -> TextSize {
11-
self.0.iter().copied().map(LenTextSize::len_text_size).sum()
11+
self.0.iter().map(TextSize::of).sum()
1212
}
1313
}
1414

0 commit comments

Comments
 (0)