Skip to content

Trailing comma left when collapsing vertical argument list to single line #2918

@staktrace

Description

@staktrace

Using rustfmt 0.99.2-nightly (5c9a2b6 2018-08-07) on this:

impl Foo {
    pub fn get_key(&self) -> Result<String, MailParseError> {
        Ok(
           try!(encoding::all::ISO_8859_1.decode(
               self.key,
               encoding::DecoderTrap::Strict,
           )).trim()
                .to_string(),
        )
    }
}

collapses the decode call onto a single line which is fine, but it keeps the trailing comma. My understanding is that the default value for trailing_comma is Vertical which should delete the comma.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-macrosArea: macros (procedural macros, macro_rules! macros, etc.)I-poor-formattingIssue: poor formattingwont-fix

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions