rust-clippy/tests/auxiliary/option_helpers.rs
2019-01-02 07:23:00 +01:00

6 lines
252 B
Rust

/// Utility macro to test linting behavior in `option_methods()`
/// The lints included in `option_methods()` should not lint if the call to map is partially
/// within a macro
macro_rules! opt_map {
($opt:expr, $map:expr) => {($opt).map($map)};
}