Skip to content

Poor formatting of newline return types in existing tests #4373

Open
@ayazhafiz

Description

@ayazhafiz

A number of our existing tests (targeting rustfmt on master) have poor formatting of return types that don't align with the changes made in #4368:

pub fn parse_conditional<'a, I: 'a>()
-> impl Parser<Input = I, Output = Expr, PartialState = ()> + 'a

pub extern "C" fn Java_com_exonum_binding_storage_indices_ValueSetIndexProxy_nativeContainsByHash()
-> bool {

fn my_function_name()
-> HashMap<(String, String, (String, String)), (String, String, String, String)> {

fn setup_happy_path()
-> Result<String, CustomTypeA>

I think these should be fixed to use return type indentation, a formatting regression fixed in #4368. These tests appear to have been added after that regression.

@topecongiro @calebcartwright if this sounds reasonable, feel free to assign me to this issue, I have some ideas of how to fix this and simplify the monolith function that handles function signature formatting (at least w.r.t. return types).

Metadata

Metadata

Assignees

Labels

bugPanic, non-idempotency, invalid code, etc.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions