Simplify code with ToTokens::into_tokens.
This commit is contained in:
parent
2a84e038c4
commit
5e9a3be5d4
@ -199,9 +199,5 @@ pub fn ruma_api(input: TokenStream) -> TokenStream {
|
||||
|
||||
let api = Api::from(exprs.inner);
|
||||
|
||||
let mut tokens = Tokens::new();
|
||||
|
||||
api.to_tokens(&mut tokens);
|
||||
|
||||
tokens.into()
|
||||
api.into_tokens().into()
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user