TokenTree::Term(t) -> TokenTree::Ident(i)

parent 00bc9b11
......@@ -70,7 +70,7 @@ pub fn property_getter<'ast>(properties: &[Property<'ast>]) -> TokenStream {
let type_token_tree: TokenTree = prop.type_.into_tokens().into_iter().nth(0).unwrap();
let tname = match type_token_tree {
TokenTree::Term(t) => t.as_str().to_string(),
TokenTree::Ident(i) => i.to_string(),
_ => String::new(),
};
......@@ -225,7 +225,7 @@ fn prop_registration<'ast>(properties: &[Property<'ast>]) -> Vec<TokenStream> {
let type_token_tree: TokenTree = prop.type_.into_tokens().into_iter().nth(0).unwrap();
let type_ = match type_token_tree {
TokenTree::Term(t) => t.as_str().to_string(),
TokenTree::Ident(i) => i.to_string(),
_ => String::new(),
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment