Unnamed repository; edit this file 'description' to name the repository.
Drop unnecessary impl
The impl is valid, but probably not too useful, we can always add it later
| -rw-r--r-- | lib/text-size/src/traits.rs | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/lib/text-size/src/traits.rs b/lib/text-size/src/traits.rs index 877f057895..d90f3d431c 100644 --- a/lib/text-size/src/traits.rs +++ b/lib/text-size/src/traits.rs @@ -1,7 +1,4 @@ -use { - crate::{TextRange, TextSize}, - std::convert::TryInto, -}; +use {crate::TextSize, std::convert::TryInto}; /// Text-like structures that have a text size. pub trait TextSized: Copy { @@ -27,9 +24,3 @@ impl TextSized for char { TextSize(self.len_utf8() as u32) } } - -impl TextSized for TextRange { - fn text_size(self) -> TextSize { - self.len() - } -} |