#[allow(unused_imports)] use sway_ast::{
attribute::{Annotated, Attribute},
AttributeDecl,
};
use sway_types::{Span, Spanned};
use super::Modifier;
impl<T> Modifier<'_, Annotated<T>> {
pub(crate) fn remove_attribute_decl_containing_attribute(
&mut self,
attribute_span: &Span,
) -> &mut Self {
self.element.attributes.retain(|attribute_decl| {
attribute_decl
.attribute
.inner
.iter()
.all(|attribute| attribute.span() != *attribute_span)
});
self
}
}