@@ -131,13 +131,13 @@ impl Display for TokenStream {
131131}
132132
133133impl From < proc_macro:: TokenStream > for TokenStream {
134- fn from ( inner : proc_macro:: TokenStream ) -> TokenStream {
134+ fn from ( inner : proc_macro:: TokenStream ) -> Self {
135135 TokenStream :: Compiler ( DeferredTokenStream :: new ( inner) )
136136 }
137137}
138138
139139impl From < TokenStream > for proc_macro:: TokenStream {
140- fn from ( inner : TokenStream ) -> proc_macro :: TokenStream {
140+ fn from ( inner : TokenStream ) -> Self {
141141 match inner {
142142 TokenStream :: Compiler ( inner) => inner. into_token_stream ( ) ,
143143 TokenStream :: Fallback ( inner) => inner. to_string ( ) . parse ( ) . unwrap ( ) ,
@@ -146,7 +146,7 @@ impl From<TokenStream> for proc_macro::TokenStream {
146146}
147147
148148impl From < fallback:: TokenStream > for TokenStream {
149- fn from ( inner : fallback:: TokenStream ) -> TokenStream {
149+ fn from ( inner : fallback:: TokenStream ) -> Self {
150150 TokenStream :: Fallback ( inner)
151151 }
152152}
@@ -170,7 +170,7 @@ fn into_compiler_token(token: TokenTree) -> proc_macro::TokenTree {
170170}
171171
172172impl From < TokenTree > for TokenStream {
173- fn from ( token : TokenTree ) -> TokenStream {
173+ fn from ( token : TokenTree ) -> Self {
174174 if inside_proc_macro ( ) {
175175 TokenStream :: Compiler ( DeferredTokenStream :: new ( into_compiler_token ( token) . into ( ) ) )
176176 } else {
@@ -263,13 +263,13 @@ impl LexError {
263263}
264264
265265impl From < proc_macro:: LexError > for LexError {
266- fn from ( e : proc_macro:: LexError ) -> LexError {
266+ fn from ( e : proc_macro:: LexError ) -> Self {
267267 LexError :: Compiler ( e)
268268 }
269269}
270270
271271impl From < fallback:: LexError > for LexError {
272- fn from ( e : fallback:: LexError ) -> LexError {
272+ fn from ( e : fallback:: LexError ) -> Self {
273273 LexError :: Fallback ( e)
274274 }
275275}
@@ -539,13 +539,13 @@ impl Span {
539539}
540540
541541impl From < proc_macro:: Span > for crate :: Span {
542- fn from ( proc_span : proc_macro:: Span ) -> crate :: Span {
542+ fn from ( proc_span : proc_macro:: Span ) -> Self {
543543 crate :: Span :: _new ( Span :: Compiler ( proc_span) )
544544 }
545545}
546546
547547impl From < fallback:: Span > for Span {
548- fn from ( inner : fallback:: Span ) -> Span {
548+ fn from ( inner : fallback:: Span ) -> Self {
549549 Span :: Fallback ( inner)
550550 }
551551}
@@ -929,7 +929,7 @@ impl Literal {
929929}
930930
931931impl From < fallback:: Literal > for Literal {
932- fn from ( s : fallback:: Literal ) -> Literal {
932+ fn from ( s : fallback:: Literal ) -> Self {
933933 Literal :: Fallback ( s)
934934 }
935935}
0 commit comments