-
Notifications
You must be signed in to change notification settings - Fork 942
Description
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:
rustfmt/tests/target/issue-3278.rs
Lines 1 to 2 in f817383
pub fn parse_conditional<'a, I: 'a>() | |
-> impl Parser<Input = I, Output = Expr, PartialState = ()> + 'a |
rustfmt/tests/target/long-fn-1.rs
Lines 18 to 19 in f817383
pub extern "C" fn Java_com_exonum_binding_storage_indices_ValueSetIndexProxy_nativeContainsByHash() | |
-> bool { |
rustfmt/tests/target/issue-2672.rs
Lines 30 to 31 in f817383
fn my_function_name() | |
-> HashMap<(String, String, (String, String)), (String, String, String, String)> { |
rustfmt/tests/target/issue-2672.rs
Lines 48 to 49 in f817383
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).