Skip to content
  • David Tolnay's avatar
    Include trailing comma in multiline Debug representation · cfd31fb4
    David Tolnay authored
    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,
        }
    cfd31fb4