File tree 1 file changed +0
-14
lines changed
1 file changed +0
-14
lines changed Original file line number Diff line number Diff line change 1
1
use crate :: ascii;
2
2
use crate :: borrow:: { Borrow , Cow } ;
3
3
use crate :: cmp:: Ordering ;
4
- use crate :: convert:: TryFrom ;
5
4
use crate :: error:: Error ;
6
5
use crate :: fmt:: { self , Write } ;
7
6
use crate :: io;
@@ -854,19 +853,6 @@ impl From<Vec<NonZeroU8>> for CString {
854
853
}
855
854
}
856
855
857
- #[ unstable( feature = "cstring_from_vec_with_nul" , issue = "73179" ) ]
858
- impl TryFrom < Vec < u8 > > for CString {
859
- type Error = FromBytesWithNulError ;
860
-
861
- /// See the document about [`from_vec_with_nul`] for more
862
- /// informations about the behaviour of this method.
863
- ///
864
- /// [`from_vec_with_nul`]: CString::from_vec_with_nul
865
- fn try_from ( value : Vec < u8 > ) -> Result < Self , Self :: Error > {
866
- Self :: from_vec_with_nul ( value)
867
- }
868
- }
869
-
870
856
#[ stable( feature = "more_box_slice_clone" , since = "1.29.0" ) ]
871
857
impl Clone for Box < CStr > {
872
858
#[ inline]
You can’t perform that action at this time.
0 commit comments