Skip to content

Condense )\n.unwrap() into a single line #5353

@TheBlueMatt

Description

@TheBlueMatt

eg it'd likely make sense for

        let data = Vec::<u8>::from_hex(
            "02020202020202020202 long line",
        )
        .unwrap();

to just be

        let data = Vec::<u8>::from_hex(
            "02020202020202020202 long line",
        ).unwrap();

at least for cases where the number of )s (and maybe }s) is under some threshold.

Metadata

Metadata

Assignees

No one assigned

    Labels

    S-duplicateStatus: duplicate of another issue or PR

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions