Skip to content

Formatter does not fold a long line #5412

Closed as not planned
Closed as not planned
@megahomyak

Description

@megahomyak
if is_action {
    if let Some(action) = all_actions.borrow_mut().iter_mut().find(|action| action.shortcut == shortcut) {
        stack.push((action.callback)().into());
    } else {
        ui.invoke_show_message(
            format!("Command with shortcut \"{shortcut}\" (found at line {line_number}) not found!").into(),
        );
    }
}

^ two lines here are longer than 100 characters (even not considering the additional indentation in my code), but none of those are folded

rustfmt version: rustfmt 1.4.38-stable (fe5b13d6 2022-05-18)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions