Commit 6cf928a
committed
Clean up misc
`rustfmt` loves to make expressions vertical by putting each method
parameter or `.` subexpression on its own line. In cases where each
method parameter or `.` subexpression 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 or a few subexpressions
which simply do rote variable indexing or locking.
Here we clean up various `rustfmt` verticality that exposes
unimportant details of tests and test utils, making it easier for
the reader to skim past them by introducing additional variables.rustfmt verticality in tests1 parent c7ded83 commit 6cf928a
File tree
4 files changed
+37
-84
lines changed- lightning/src/ln
4 files changed
+37
-84
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1299 | 1299 | | |
1300 | 1300 | | |
1301 | 1301 | | |
1302 | | - | |
1303 | | - | |
1304 | | - | |
1305 | | - | |
1306 | | - | |
1307 | | - | |
1308 | | - | |
1309 | | - | |
1310 | | - | |
1311 | | - | |
1312 | | - | |
1313 | | - | |
1314 | | - | |
1315 | | - | |
| 1302 | + | |
| 1303 | + | |
| 1304 | + | |
| 1305 | + | |
1316 | 1306 | | |
1317 | 1307 | | |
1318 | 1308 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
799 | 799 | | |
800 | 800 | | |
801 | 801 | | |
802 | | - | |
803 | | - | |
804 | | - | |
805 | | - | |
806 | | - | |
807 | | - | |
| 802 | + | |
| 803 | + | |
808 | 804 | | |
809 | 805 | | |
810 | 806 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
115 | 111 | | |
116 | 112 | | |
117 | 113 | | |
| |||
967 | 963 | | |
968 | 964 | | |
969 | 965 | | |
970 | | - | |
971 | | - | |
972 | | - | |
973 | | - | |
974 | | - | |
975 | | - | |
976 | | - | |
977 | | - | |
| 966 | + | |
| 967 | + | |
| 968 | + | |
| 969 | + | |
| 970 | + | |
978 | 971 | | |
979 | 972 | | |
980 | 973 | | |
| |||
1020 | 1013 | | |
1021 | 1014 | | |
1022 | 1015 | | |
1023 | | - | |
1024 | | - | |
1025 | | - | |
1026 | | - | |
1027 | | - | |
1028 | | - | |
1029 | | - | |
| 1016 | + | |
| 1017 | + | |
1030 | 1018 | | |
1031 | 1019 | | |
1032 | 1020 | | |
| |||
1138 | 1126 | | |
1139 | 1127 | | |
1140 | 1128 | | |
1141 | | - | |
1142 | | - | |
1143 | | - | |
1144 | | - | |
1145 | | - | |
1146 | | - | |
1147 | | - | |
1148 | | - | |
1149 | | - | |
1150 | | - | |
| 1129 | + | |
| 1130 | + | |
| 1131 | + | |
| 1132 | + | |
| 1133 | + | |
1151 | 1134 | | |
1152 | 1135 | | |
1153 | | - | |
1154 | | - | |
1155 | | - | |
1156 | | - | |
1157 | | - | |
1158 | | - | |
1159 | | - | |
1160 | | - | |
1161 | | - | |
1162 | | - | |
| 1136 | + | |
| 1137 | + | |
| 1138 | + | |
| 1139 | + | |
| 1140 | + | |
1163 | 1141 | | |
1164 | 1142 | | |
1165 | 1143 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1346 | 1346 | | |
1347 | 1347 | | |
1348 | 1348 | | |
1349 | | - | |
1350 | | - | |
1351 | | - | |
1352 | | - | |
1353 | | - | |
1354 | | - | |
1355 | | - | |
1356 | | - | |
1357 | | - | |
1358 | | - | |
1359 | | - | |
1360 | | - | |
1361 | | - | |
1362 | | - | |
| 1349 | + | |
| 1350 | + | |
| 1351 | + | |
| 1352 | + | |
| 1353 | + | |
| 1354 | + | |
1363 | 1355 | | |
1364 | 1356 | | |
1365 | 1357 | | |
| |||
1609 | 1601 | | |
1610 | 1602 | | |
1611 | 1603 | | |
1612 | | - | |
1613 | | - | |
1614 | | - | |
1615 | | - | |
1616 | | - | |
1617 | | - | |
1618 | | - | |
1619 | | - | |
| 1604 | + | |
| 1605 | + | |
| 1606 | + | |
| 1607 | + | |
| 1608 | + | |
1620 | 1609 | | |
1621 | 1610 | | |
1622 | 1611 | | |
| |||
0 commit comments