Skip to content

Commit be985b7

Browse files
committed
target the TextSized blanket impl more tightly"
1 parent 63cbf15 commit be985b7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/traits.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ impl TextSized for &'_ str {
2020

2121
impl<D> TextSized for &'_ D
2222
where
23-
D: Deref,
24-
for<'a> &'a D::Target: TextSized,
23+
D: Deref<Target = str>,
2524
{
2625
#[inline]
2726
fn text_size(self) -> TextSize {

0 commit comments

Comments
 (0)