Clarify example for macro_use (#14220)

Clarify example for macro_use

changelog: none
This commit is contained in:
Timo 2025-02-15 10:22:11 +00:00 committed by GitHub
commit 379c8f4bfb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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,