Commit 8eedb3f
committed
style(core): hoist mid-module
The tests module had a second `use` block in the middle of the file
(line ~1259, just before the plumbing-tests section) for std::sync::Mutex,
pluto_crypto/testutil/serde_json, and a re-import of SignedRandao /
SyncContribution / VersionedAggregatedAttestation / PubKey from `crate`.
Rust style places all `use` declarations at the top of each module.
Fold the mid-block imports into the existing top-of-module `use` block.
Drop the now-redundant `pluto_eth2util::signing::DomainName` test-mod
import — the parent module already brings it in via `use super::*`.use statements in validatorapi tests1 parent 0195b05 commit 8eedb3f
1 file changed
Lines changed: 7 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
810 | 810 | | |
811 | 811 | | |
812 | 812 | | |
| 813 | + | |
| 814 | + | |
813 | 815 | | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
814 | 819 | | |
815 | 820 | | |
816 | 821 | | |
| |||
820 | 825 | | |
821 | 826 | | |
822 | 827 | | |
| 828 | + | |
823 | 829 | | |
824 | 830 | | |
825 | | - | |
| 831 | + | |
826 | 832 | | |
827 | 833 | | |
828 | 834 | | |
| |||
1256 | 1262 | | |
1257 | 1263 | | |
1258 | 1264 | | |
1259 | | - | |
1260 | | - | |
1261 | | - | |
1262 | | - | |
1263 | | - | |
1264 | | - | |
1265 | | - | |
1266 | | - | |
1267 | | - | |
1268 | | - | |
1269 | | - | |
1270 | | - | |
1271 | 1265 | | |
1272 | 1266 | | |
1273 | 1267 | | |
| |||
0 commit comments