Skip to content

Commit

Permalink
Clarify example for macro_use (#14220)
Browse files Browse the repository at this point in the history
Clarify example for macro_use

changelog: none
  • Loading branch information
y21 authored Feb 15, 2025
2 parents 0dd5c4d + 1338829 commit 379c8f4
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion clippy_lints/src/macro_use.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 379c8f4

Please sign in to comment.