Runtime tests: the part builder test's shape names its types, as clippy asks
Clippy under --cfg m2v_gpu at 9737a44d98 (job m3-max-76168) refused plane_parts' `shape` return
type as too complex (clippy::type_complexity, denied by -D warnings). The parts and the hand-overs
asked for are now named types. No test changes what it checks.
This commit is contained in:
1 parent
9737a44d98
commit
55f6c2760b
1 file changed
+7
-1
@@ -30,6 +30,12 @@ fn staged(raw: u64, signals: &[u64]) -> Staged {
|
||||
/// An info as its command buffers and its signals, each signal as its semaphore and value.
|
||||
type Info = (Vec<u64>, Vec<(u64, u64)>);
|
||||
|
||||
/// The parts as their values and infos.
|
||||
type Parts = Vec<(u64, Vec<Info>)>;
|
||||
|
||||
/// The hand-overs asked for, as their planes and whether each acquires.
|
||||
type Asked = Vec<(Vec<char>, bool)>;
|
||||
|
||||
/// The parts of `segments`, the first `ahead` of them uploads, at the last value 10, each as its
|
||||
/// value and its infos; with each hand-over asked for, as its planes and whether it acquires.
|
||||
/// Each hand-over's command buffer is numbered from 100 in the order asked.
|
||||
@@ -38,7 +44,7 @@ fn shape(
|
||||
ahead: usize,
|
||||
leads: &[usize],
|
||||
planes: &[Vec<char>],
|
||||
) -> (Vec<(u64, Vec<Info>)>, Vec<(Vec<char>, bool)>) {
|
||||
) -> (Parts, Asked) {
|
||||
let mut asked = Vec::new();
|
||||
let made = parts(
|
||||
segments,
|
||||
|
||||
Reference in new issue
Block a user