mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-15 01:17:16 +00:00
6 lines
252 B
Rust
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)};
|
|
}
|