Remove inherent methods Annotatable::attrs
and Annotatable::fold_attrs
.
This commit is contained in:
parent
4fe94e0be6
commit
663caa9ddf
@ -60,13 +60,6 @@ impl HasAttrs for Annotatable {
|
||||
}
|
||||
|
||||
impl Annotatable {
|
||||
pub fn attrs(&self) -> &[ast::Attribute] {
|
||||
HasAttrs::attrs(self)
|
||||
}
|
||||
pub fn fold_attrs(self, attrs: Vec<ast::Attribute>) -> Annotatable {
|
||||
self.map_attrs(|_| attrs)
|
||||
}
|
||||
|
||||
pub fn expect_item(self) -> P<ast::Item> {
|
||||
match self {
|
||||
Annotatable::Item(i) => i,
|
||||
|
Loading…
Reference in New Issue
Block a user