clippy_utils::attrs

Function get_unique_attr

Source
pub fn get_unique_attr<'a, A: AttributeExt>(
    sess: &'a Session,
    attrs: &'a [A],
    name: &'static str,
) -> Option<&'a A>