Skip to content

Commit

Permalink
Drop unnecessary impl
Browse files Browse the repository at this point in the history
The impl is valid, but probably not too useful, we can always add it later
  • Loading branch information
matklad committed Mar 10, 2020
1 parent 56801af commit 786cfa4
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions src/traits.rs
Original file line number Diff line number Diff line change
@@ -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 {
Expand All @@ -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()
}
}

0 comments on commit 786cfa4

Please sign in to comment.