Skip to content

Add known downside to mem_replace_with_default: not backwards compatible with 1.39 #5313

@jyn514

Description

@jyn514

Clippy suggests turning mem::swap(a, Default::default()) with mem::take(a). However, mem::take was only stabilized in 1.40 and changing this will break compatibility with older versions. This should be added to # Known problems on the website.

cargo clippy -V: clippy 0.0.212 (4ee1206 2020-02-01)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions