Unnamed repository; edit this file 'description' to name the repository.
Imporove test's impl LenTextSize for BadRope
| -rw-r--r-- | lib/text-size/tests/constructors.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/text-size/tests/constructors.rs b/lib/text-size/tests/constructors.rs index 52f1792218..1022a4168b 100644 --- a/lib/text-size/tests/constructors.rs +++ b/lib/text-size/tests/constructors.rs @@ -8,7 +8,7 @@ struct BadRope<'a>(&'a [&'a str]); impl LenTextSize for BadRope<'_> { fn len_text_size(self) -> TextSize { - self.0.iter().copied().map(LenTextSize::len_text_size).sum() + self.0.iter().map(TextSize::of).sum() } } |