style: apply rustfmt across all crates and demos
Consistent formatting pass: line wrapping, import sorting, trailing whitespace removal, let-chain indentation, merged derive attributes, and unsafe block reformatting. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
This commit is contained in:
@@ -337,9 +337,7 @@ pub fn spatio_temporal_cluster_test(
|
||||
let t_perm = compute_t_stats_ind(perm_x, perm_y, n_nodes, n_times);
|
||||
let perm_clusters = find_clusters(&t_perm, threshold, adjacency, tail);
|
||||
|
||||
perm_clusters
|
||||
.first()
|
||||
.map_or(0.0, |c| c.statistic.abs())
|
||||
perm_clusters.first().map_or(0.0, |c| c.statistic.abs())
|
||||
})
|
||||
.collect()
|
||||
} else {
|
||||
@@ -371,9 +369,7 @@ pub fn spatio_temporal_cluster_test(
|
||||
let t_perm = compute_t_stats_1samp(&flipped, n_nodes, n_times);
|
||||
let perm_clusters = find_clusters(&t_perm, threshold, adjacency, tail);
|
||||
|
||||
perm_clusters
|
||||
.first()
|
||||
.map_or(0.0, |c| c.statistic.abs())
|
||||
perm_clusters.first().map_or(0.0, |c| c.statistic.abs())
|
||||
})
|
||||
.collect()
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user