Skip to main content

flexpect

Attribute Macro flexpect 

Source
#[flexpect]
Expand description

#[flexpect(...)] compiles to #[expect(...)] for newer versions of Rust and to #[allow(...)] when not supported.

ยงExample

use flexpect::flexpect;

// instead of #[expect(clippy::clone_on_copy)]
#[flexpect(clippy::clone_on_copy)]
fn clippy_example() {
    let _ = 32.clone();
}