Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'lib/text-size/tests/constructors.rs')
-rw-r--r--lib/text-size/tests/constructors.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/text-size/tests/constructors.rs b/lib/text-size/tests/constructors.rs
index 1022a4168b..829a28e477 100644
--- a/lib/text-size/tests/constructors.rs
+++ b/lib/text-size/tests/constructors.rs
@@ -6,8 +6,8 @@ use {
#[derive(Copy, Clone)]
struct BadRope<'a>(&'a [&'a str]);
-impl LenTextSize for BadRope<'_> {
- fn len_text_size(self) -> TextSize {
+impl TextLen for BadRope<'_> {
+ fn text_len(self) -> TextSize {
self.0.iter().map(TextSize::of).sum()
}
}