mismatched_target_os: link to respective section in rust reference
This commit is contained in:
parent
0a53ed2d8e
commit
b7800e1ac3
@ -238,6 +238,7 @@ declare_clippy_lint! {
|
||||
/// #[cfg(unix)]
|
||||
/// fn conditional() { }
|
||||
/// ```
|
||||
/// Check the [Rust Reference](https://doc.rust-lang.org/reference/conditional-compilation.html#target_os) for more details.
|
||||
pub MISMATCHED_TARGET_OS,
|
||||
correctness,
|
||||
"usage of `cfg(operating_system)` instead of `cfg(target_os = \"operating_system\")`"
|
||||
|
Loading…
Reference in New Issue
Block a user