Use TokenStream::token_alone
in one place.
This commit is contained in:
parent
bb9c2f50c3
commit
33aff5b152
1 changed files with 4 additions and 4 deletions
|
@ -197,10 +197,10 @@ impl Attribute {
|
||||||
.unwrap_or_else(|| panic!("attribute is missing tokens: {self:?}"))
|
.unwrap_or_else(|| panic!("attribute is missing tokens: {self:?}"))
|
||||||
.to_attr_token_stream()
|
.to_attr_token_stream()
|
||||||
.to_tokenstream(),
|
.to_tokenstream(),
|
||||||
&AttrKind::DocComment(comment_kind, data) => TokenStream::new(vec![TokenTree::Token(
|
&AttrKind::DocComment(comment_kind, data) => TokenStream::token_alone(
|
||||||
Token::new(token::DocComment(comment_kind, self.style, data), self.span),
|
token::DocComment(comment_kind, self.style, data),
|
||||||
Spacing::Alone,
|
self.span,
|
||||||
)]),
|
),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue