Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include trailing comma in multiline Debug representation #59076

Merged
merged 1 commit into from
Apr 5, 2019

Commits on Apr 5, 2019

  1. Include trailing comma in multiline Debug representation

    This commit changes the behavior of Formatter::debug_struct,
    debug_tuple, debug_list, debug_set, and debug_map to render trailing
    commas in {:#?} mode, which is the dominant style in modern Rust code.
    
    Before:
    
        Language {
            name: "Rust",
            trailing_commas: false
        }
    
    After:
    
        Language {
            name: "Rust",
            trailing_commas: true,
        }
    dtolnay committed Apr 5, 2019
    Configuration menu
    Copy the full SHA
    cfd31fb View commit details
    Browse the repository at this point in the history