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:
@@ -43,7 +43,7 @@ pub struct ProteinEncoder {
|
||||
|
||||
impl ProteinEncoder {
|
||||
/// Create a new protein encoder.
|
||||
#[must_use]
|
||||
#[must_use]
|
||||
pub fn new(config: ProteinEncoderConfig) -> Self {
|
||||
let aa_embeddings = AminoAcidEmbeddings::new(config.aa_dim);
|
||||
let positional_encoding = PositionalEncoding::new(config.hidden_dim, config.max_seq_len);
|
||||
@@ -64,7 +64,7 @@ impl ProteinEncoder {
|
||||
}
|
||||
|
||||
/// Encode a protein target.
|
||||
#[must_use]
|
||||
#[must_use]
|
||||
pub fn encode(&self, protein: &ProteinTarget) -> ProteinEmbedding {
|
||||
// Encode sequence
|
||||
let seq_embedding = self.encode_sequence(&protein.sequence);
|
||||
|
||||
Reference in New Issue
Block a user