File tree Expand file tree Collapse file tree 1 file changed +0
-4
lines changed
Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Original file line number Diff line number Diff line change @@ -411,7 +411,6 @@ impl AsciiString {
411411 /// Converts this [`AsciiString`] into a [`Box`]`<`[`AsciiStr`]`>`.
412412 ///
413413 /// This will drop any excess capacity
414- #[ cfg( feature = "alloc" ) ]
415414 #[ inline]
416415 #[ must_use]
417416 pub fn into_boxed_ascii_str ( self ) -> Box < AsciiStr > {
@@ -547,15 +546,13 @@ impl Into<String> for AsciiString {
547546 }
548547}
549548
550- #[ cfg( feature = "alloc" ) ]
551549impl From < Box < AsciiStr > > for AsciiString {
552550 #[ inline]
553551 fn from ( boxed : Box < AsciiStr > ) -> Self {
554552 boxed. into_ascii_string ( )
555553 }
556554}
557555
558- #[ cfg( feature = "alloc" ) ]
559556impl From < AsciiString > for Box < AsciiStr > {
560557 #[ inline]
561558 fn from ( string : AsciiString ) -> Self {
@@ -1056,7 +1053,6 @@ mod tests {
10561053 assert ! ( fmt:: write( & mut s2, format_args!( "{}" , sparkle_heart) ) . is_err( ) ) ;
10571054 }
10581055
1059- #[ cfg( feature = "alloc" ) ]
10601056 #[ test]
10611057 fn to_and_from_box ( ) {
10621058 let string = "abc" . into_ascii_string ( ) . unwrap ( ) ;
You can’t perform that action at this time.
0 commit comments