File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -577,7 +577,7 @@ pub trait AsMutAsciiStr {
577
577
}
578
578
579
579
// These generic implementations mirror the generic implementations for AsRef<T> in core.
580
- impl < ' a , T > AsAsciiStr for & ' a T where T : AsAsciiStr + ? Sized {
580
+ impl < ' a , T : ? Sized > AsAsciiStr for & ' a T where T : AsAsciiStr {
581
581
#[ inline]
582
582
fn as_ascii_str ( & self ) -> Result < & AsciiStr , AsAsciiStrError > {
583
583
<T as AsAsciiStr >:: as_ascii_str ( * self )
@@ -589,7 +589,7 @@ impl<'a, T> AsAsciiStr for &'a T where T: AsAsciiStr + ?Sized {
589
589
}
590
590
}
591
591
592
- impl < ' a , T > AsAsciiStr for & ' a mut T where T : AsAsciiStr + ? Sized {
592
+ impl < ' a , T : ? Sized > AsAsciiStr for & ' a mut T where T : AsAsciiStr {
593
593
#[ inline]
594
594
fn as_ascii_str ( & self ) -> Result < & AsciiStr , AsAsciiStrError > {
595
595
<T as AsAsciiStr >:: as_ascii_str ( * self )
@@ -601,7 +601,7 @@ impl<'a, T> AsAsciiStr for &'a mut T where T: AsAsciiStr + ?Sized {
601
601
}
602
602
}
603
603
604
- impl < ' a , T > AsMutAsciiStr for & ' a mut T where T : AsMutAsciiStr + ? Sized {
604
+ impl < ' a , T : ? Sized > AsMutAsciiStr for & ' a mut T where T : AsMutAsciiStr {
605
605
#[ inline]
606
606
fn as_mut_ascii_str ( & mut self ) -> Result < & mut AsciiStr , AsAsciiStrError > {
607
607
<T as AsMutAsciiStr >:: as_mut_ascii_str ( * self )
You can’t perform that action at this time.
0 commit comments