Skip to content

Commit 937be01

Browse files
Remove unnecessary trait bound on ?Sized.
Fixes #1.
1 parent 76ffde3 commit 937be01

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

le-stream/src/prefixed.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ impl<P, D> Prefixed<P, D> {
2222

2323
impl<P, D, T> AsRef<T> for Prefixed<P, D>
2424
where
25-
T: ?Sized,
2625
D: AsRef<T>,
2726
{
2827
fn as_ref(&self) -> &T {
@@ -32,7 +31,6 @@ where
3231

3332
impl<P, D, T> AsMut<T> for Prefixed<P, D>
3433
where
35-
T: ?Sized,
3634
D: AsMut<T>,
3735
{
3836
fn as_mut(&mut self) -> &mut T {
@@ -42,7 +40,7 @@ where
4240

4341
impl<P, D> Deref for Prefixed<P, D>
4442
where
45-
D: Deref<Target: ?Sized>,
43+
D: Deref,
4644
{
4745
type Target = D::Target;
4846

0 commit comments

Comments
 (0)