rust-lang/rustfmt

Unexpected extra space in multi-line tuple struct with `pub`

jrose-signal opened this issue · 2 comments

pub struct MyService(
    pub  dependency::Multi<
        Arc<dyn dependency::ServiceWithDebugInfo + Send + Sync>,
        Arc<dyn dependency::ServiceWithDebugInfo + Send + Sync>,
    >,
);

I realize this is kind of a terrible type to begin with, but the extra space after the pub for the field was unexpected. If there's a reason for it, though, please close this!

Duplicate of #5703, #5525, #5997

🤦 I searched "tuple struct space" and "tuple struct pub". Thanks.