Rename Attribute::tokens
(the inherent method).
To distinguish it from the `HasTokens` method.
This commit is contained in:
parent
dd790ab8ef
commit
14b859fa3b
3 changed files with 5 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue