Skip to content

Some strings can be simplified for readability #15998

Closed
@hamirmahal

Description

@hamirmahal

We can replace lines like

.ok_or_else(|| format!("Invalid {} '{}'", label, size))?;

with

.ok_or_else(|| format!("Invalid {label} '{size}'"))?;

to improve code readability and maintainability.

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