File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -109,6 +109,7 @@ macro_rules! with_api {
109
109
fn drop( $self: $S:: Literal ) ;
110
110
fn clone( $self: & $S:: Literal ) -> $S:: Literal ;
111
111
fn from_str( s: & str ) -> Result <$S:: Literal , ( ) >;
112
+ fn to_string( $self: & $S:: Literal ) -> String ;
112
113
fn debug_kind( $self: & $S:: Literal ) -> String ;
113
114
fn symbol( $self: & $S:: Literal ) -> String ;
114
115
fn suffix( $self: & $S:: Literal ) -> Option <String >;
Original file line number Diff line number Diff line change @@ -1195,7 +1195,7 @@ impl FromStr for Literal {
1195
1195
#[ stable( feature = "proc_macro_lib" , since = "1.15.0" ) ]
1196
1196
impl ToString for Literal {
1197
1197
fn to_string ( & self ) -> String {
1198
- TokenStream :: from ( TokenTree :: from ( self . clone ( ) ) ) . to_string ( )
1198
+ self . 0 . to_string ( )
1199
1199
}
1200
1200
}
1201
1201
You can’t perform that action at this time.
0 commit comments