You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Clean up some peer_connected call rustfmt verticality
`rustfmt` loves to make expressions vertical by putting each method
parameter on its own line. In cases where each method parameter is
actually doing something, this can be fine, but in some cases we
have a few method parameters that are straightforward and shouldn't
be the readers focus, mixed with one or two parameters which are
key.
Here, we clean up a regular instance of this in calls to
`peer_connected` in `priv_short_conf_tests.rs` and
`shutdown_tests.rs`. In these tests, the fact that we're
reconnecting is important, but the specific features in the `Init`
message are not. Thus, condensing the calls onto two lines by
breaking the init message out into a variable enables the reader
to more easily skim past useless details.
0 commit comments