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:
@@ -33,7 +33,7 @@ impl Default for EvoformerBlock {
|
||||
|
||||
impl EvoformerBlock {
|
||||
/// Create a new Evoformer block.
|
||||
#[must_use]
|
||||
#[must_use]
|
||||
pub fn new(num_heads: usize) -> Self {
|
||||
use rand::SeedableRng;
|
||||
use rand_distr::{Distribution, Normal};
|
||||
@@ -176,7 +176,7 @@ pub struct Evoformer {
|
||||
|
||||
impl Evoformer {
|
||||
/// Create a new Evoformer with specified number of blocks.
|
||||
#[must_use]
|
||||
#[must_use]
|
||||
pub fn new(num_blocks: usize) -> Self {
|
||||
let blocks = (0..num_blocks).map(|_| EvoformerBlock::default()).collect();
|
||||
Self { blocks }
|
||||
|
||||
Reference in New Issue
Block a user