Skip to content

2.0.0-rc.2 formatting regression with line-wrapped functions #4366

Closed
@ahl

Description

@ahl

Input

// rustfmt-max_width: 80
trait GetMetadata {
    fn metadata(loc: ApiEndpointParameterLocation)
        -> Vec<ApiEndpointParameter>;
}

Output

// rustfmt-max_width: 80
trait GetMetadata {
    fn metadata(loc: ApiEndpointParameterLocation)
    -> Vec<ApiEndpointParameter>;
}

Expected output

// rustfmt-max_width: 80
trait GetMetadata {
    fn metadata(loc: ApiEndpointParameterLocation)
        -> Vec<ApiEndpointParameter>;
}

Meta

  • rustfmt version: rustfmt 2.0.0-rc.2-nightly (0921e1f 2020-07-29)
  • From where did you install rustfmt?: built from source

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions