Clarify example for macro_use (#14220)
Clarify example for macro_use changelog: none
This commit is contained in:
commit
379c8f4bfb
1 changed files with 15 additions and 1 deletions
|
|
@ -21,7 +21,21 @@ declare_clippy_lint! {
|
|||
/// ### Example
|
||||
/// ```rust,ignore
|
||||
/// #[macro_use]
|
||||
/// use some_macro;
|
||||
/// extern crate some_crate;
|
||||
///
|
||||
/// fn main() {
|
||||
/// some_macro!();
|
||||
/// }
|
||||
/// ```
|
||||
///
|
||||
/// Use instead:
|
||||
///
|
||||
/// ```rust,ignore
|
||||
/// use some_crate::some_macro;
|
||||
///
|
||||
/// fn main() {
|
||||
/// some_macro!();
|
||||
/// }
|
||||
/// ```
|
||||
#[clippy::version = "1.44.0"]
|
||||
pub MACRO_USE_IMPORTS,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue