Open
Description
openedon Jan 22, 2024
The following snippet is formatted using rustfmt.
match Some(1) {
Some(number) => (
"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
number,
)
.to_owned(),
None => ("test", 0).to_owned(),
};
In my opinion, this is not very readable since it breaks the strict indentation of anything inside a match arm. Shouldn't the closing bracket of the tuple in the Some(_) arm be indented further (and therefore, potentially, the two fields of the tuple as well)?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment