//! AdapterRequirement impl for the rustc requirement data.

use crate::types::{ADAPTER_ID, RustcAdapterRequirement};

impl shackles_core::AdapterRequirement for RustcAdapterRequirement {
    fn adapter_id(&self) -> &'static str {
        ADAPTER_ID
    }

    #[allow(
        clippy::disallowed_types,
        reason = "AdapterRequirement uses Any for erased requirement downcasting."
    )]
    fn as_any(&self) -> &dyn core::any::Any {
        self
    }
}
