Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'lib/text-size/src/traits.rs')
| -rw-r--r-- | lib/text-size/src/traits.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/text-size/src/traits.rs b/lib/text-size/src/traits.rs index 6c30549edc..6f3462bee5 100644 --- a/lib/text-size/src/traits.rs +++ b/lib/text-size/src/traits.rs @@ -20,8 +20,7 @@ impl TextSized for &'_ str { impl<D> TextSized for &'_ D where - D: Deref, - for<'a> &'a D::Target: TextSized, + D: Deref<Target = str>, { #[inline] fn text_size(self) -> TextSize { |