-
Notifications
You must be signed in to change notification settings - Fork 932
Open
Labels
a-matchesmatch arms, patterns, blocks, etcmatch arms, patterns, blocks, etce-trailing whitespaceerror[internal]: left behind trailing whitespaceerror[internal]: left behind trailing whitespacep-lowpoor-formatting
Description
Code like this:
fn put_telescope_synctocoordinates(
PutTelescopeSynctocoordinatesPathParams {
device_number,
}: PutTelescopeSynctocoordinatesPathParams,
) {
}
triggers "left behind trailing whitespace".
I suppose it's because rustfmt tries to put entire param - both pattern and type - on the same line, fails in doing so as that exceeds the max width, and gives up. Instead, it should probably fallback to something like
fn put_telescope_synctocoordinates(
PutTelescopeSynctocoordinatesPathParams {
device_number,
}: PutTelescopeSynctocoordinatesPathParams,
) {
}
Metadata
Metadata
Assignees
Labels
a-matchesmatch arms, patterns, blocks, etcmatch arms, patterns, blocks, etce-trailing whitespaceerror[internal]: left behind trailing whitespaceerror[internal]: left behind trailing whitespacep-lowpoor-formatting