1
Fork 0

Rename Attribute::tokens (the inherent method).

To distinguish it from the `HasTokens` method.
This commit is contained in:
Nicholas Nethercote 2024-07-04 09:04:51 +10:00
parent dd790ab8ef
commit 14b859fa3b
3 changed files with 5 additions and 4 deletions

View file

@ -202,7 +202,8 @@ impl Attribute {
}
}
pub fn tokens(&self) -> TokenStream {
// Named `get_tokens` to distinguish it from the `<Attribute as HasTokens>::tokens` method.
pub fn get_tokens(&self) -> TokenStream {
match &self.kind {
AttrKind::Normal(normal) => TokenStream::new(
normal