File tree 1 file changed +0
-4
lines changed 1 file changed +0
-4
lines changed Original file line number Diff line number Diff line change @@ -411,7 +411,6 @@ impl AsciiString {
411
411
/// Converts this [`AsciiString`] into a [`Box`]`<`[`AsciiStr`]`>`.
412
412
///
413
413
/// This will drop any excess capacity
414
- #[ cfg( feature = "alloc" ) ]
415
414
#[ inline]
416
415
#[ must_use]
417
416
pub fn into_boxed_ascii_str ( self ) -> Box < AsciiStr > {
@@ -547,15 +546,13 @@ impl Into<String> for AsciiString {
547
546
}
548
547
}
549
548
550
- #[ cfg( feature = "alloc" ) ]
551
549
impl From < Box < AsciiStr > > for AsciiString {
552
550
#[ inline]
553
551
fn from ( boxed : Box < AsciiStr > ) -> Self {
554
552
boxed. into_ascii_string ( )
555
553
}
556
554
}
557
555
558
- #[ cfg( feature = "alloc" ) ]
559
556
impl From < AsciiString > for Box < AsciiStr > {
560
557
#[ inline]
561
558
fn from ( string : AsciiString ) -> Self {
@@ -1056,7 +1053,6 @@ mod tests {
1056
1053
assert ! ( fmt:: write( & mut s2, format_args!( "{}" , sparkle_heart) ) . is_err( ) ) ;
1057
1054
}
1058
1055
1059
- #[ cfg( feature = "alloc" ) ]
1060
1056
#[ test]
1061
1057
fn to_and_from_box ( ) {
1062
1058
let string = "abc" . into_ascii_string ( ) . unwrap ( ) ;
You can’t perform that action at this time.
0 commit comments