Skip to content

Rust: debug log can be formatted by rustfmt into multiple lines #119

Closed
@xixiaofinland

Description

@xixiaofinland

For example, if the line is beyond the max_width, rustfmt will auto-formatted it into multiple lines:

            eprintln!(
                "gopro[6]: rewrite.rs:213: try_add_standalone_suffix={:#?}",
                try_add_standalone_suffix
            );

then the command to delete debug lines will only delete one line.

            eprintln!(
                try_add_standalone_suffix
            );

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions