Skip to content

FN useless_format: write!(f,"{}",format!()) #3155

Closed
@matthiaskrgr

Description

@matthiaskrgr
        write!(
            f,
            "{}",
            format!(
                "Cargo cache '{}/':\n\n",
                &self.cargo_cache_paths.cargo_home.display()
            )
        )?;

should just be

        write!(
            f,
            "Cargo cache '{}/':\n\n",
            &self.cargo_cache_paths.cargo_home.display()
        )?;

but clippy doesn't warn apparently.
clippy 0.0.212 (cafef7b 2018-09-06)

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-lintArea: New lintsC-enhancementCategory: Enhancement of lints, like adding more cases or adding help messagesI-false-negativeIssue: The lint should have been triggered on code, but wasn'tL-complexityLint: Belongs in the complexity lint group

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions