Skip to content

Clippy suggests macro expanded code #3333

Closed
@pravic

Description

@pravic

Playground link:

#[macro_use]
extern crate log;

fn main() {
    let r: Result<(), ()> = Ok(());
    match r {
        Err(_) => error!(""),
        _ => {}
    }
}

clippy 0.0.212 (9d33731 2018-10-11)

Metadata

Metadata

Assignees

No one assigned

    Labels

    L-suggestionLint: Improving, adding or fixing lint suggestionsT-macrosType: Issues with macros and macro expansiongood first issueThese issues are a good way to get started with Clippy

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions