Skip to content

Commit c3e4019

Browse files
committed
Drop unnecessary impl
The impl is valid, but probably not too useful, we can always add it later
1 parent 578ec6f commit c3e4019

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

src/traits.rs

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
use {
2-
crate::{TextRange, TextSize},
3-
std::convert::TryInto,
4-
};
1+
use {crate::TextSize, std::convert::TryInto};
52

63
/// Text-like structures that have a text size.
74
pub trait TextSized: Copy {
@@ -27,9 +24,3 @@ impl TextSized for char {
2724
TextSize(self.len_utf8() as u32)
2825
}
2926
}
30-
31-
impl TextSized for TextRange {
32-
fn text_size(self) -> TextSize {
33-
self.len()
34-
}
35-
}

0 commit comments

Comments
 (0)