Skip to content

Commit c940add

Browse files
committed
Sort derives
1 parent 47d7177 commit c940add

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

rustyms/src/identification/formats/instanovo.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ impl IdentifiedPeptidoformVersion<InstaNovoFormat> for InstaNovoVersion {
134134
}
135135

136136
/// The model that produced the final prediction for an InstaNovoPlus
137-
#[derive(Clone, Copy, Serialize, Deserialize, PartialEq, Eq, PartialOrd, Ord, Hash, Debug)]
137+
#[derive(Clone, Copy, Debug, Deserialize, Eq, Hash, Ord, PartialEq, PartialOrd, Serialize)]
138138
pub enum UsedModel {
139139
/// The diffusion model
140140
Diffusion,

rustyms/src/identification/metadata.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ pub trait MetaData {
101101
/// A flanking sequence
102102
// Impossible to get the Sequence option smaller (size of a pointer plus alignment of a pointer so the discriminator is 8 bytes as well)
103103
#[allow(variant_size_differences)]
104-
#[derive(Clone, Debug, Deserialize, PartialEq, Serialize, Eq, Default)]
104+
#[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)]
105105
pub enum FlankingSequence {
106106
/// If the flanking sequence is unknown (in _de novo_ for example)
107107
#[default]

0 commit comments

Comments
 (0)