flexpect 0.0.2

Attribute macro that falls back to #[allow] if #[expect] is not supported
Documentation
#![cfg(feature = "submodtests")]

#[flexpect::expect(unused_variables, clippy::clone_on_copy)]
mod submod_correct {
    #[test]
    fn compiler_warning_correctly_flexpected() {
        let x = 1;
    }

    #[test]
    fn clippy_warning_correctly_flexpected() {
        let _ = 32.clone();
    }
}

#[flexpect::expect(unused_variables, clippy::clone_on_copy)]
mod submod_incorrect {
    #[test]
    fn compiler_warning_incorrectly_flexpected() {}

    #[test]
    fn clippy_warning_incorrectly_flexpected() {}
}