clippy_utils

Function is_enum_variant_ctor

Source
pub fn is_enum_variant_ctor(
    cx: &LateContext<'_>,
    enum_item: Symbol,
    variant_name: Symbol,
    ctor_call_id: DefId,
) -> bool
Expand description

Checks if {ctor_call_id}(...) is {enum_item}::{variant_name}(...).