Skip to content

Commit e84d8e9

Browse files
committed
Reorder derives to be the same
A few structs had a different order of the derives. These were missed in a search and replace for all structs that had `Serialize` and therefore `serde` when adding `#[serde(deny_unknown_fields)]`. Reorder the derives to be the same as everywhere else.
1 parent 7e341c8 commit e84d8e9

File tree

1 file changed

+4
-4
lines changed
  • types/src/v29/blockchain

1 file changed

+4
-4
lines changed

types/src/v29/blockchain/mod.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -187,13 +187,13 @@ pub struct GetBlockHeaderVerbose {
187187
/// > 1. blockhashes (json array, optional) The list of blockhashes to examine for activity. Order doesn't matter. Must be along main chain or an error is thrown.
188188
/// > 2. scanobjects (json array, optional) Array of scan objects. Required for "start" action
189189
/// > 3. include_mempool (boolean, optional, default=true) Whether to include unconfirmed activitydata
190-
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
190+
#[derive(Clone, PartialEq, Debug, Deserialize, Serialize)]
191191
pub struct GetDescriptorActivity {
192192
pub activity: Vec<ActivityEntry>,
193193
}
194194

195195
/// Enum representing either a spend or receive activity entry.
196-
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
196+
#[derive(Clone, PartialEq, Debug, Deserialize, Serialize)]
197197
#[serde(tag = "type", rename_all = "lowercase")]
198198
pub enum ActivityEntry {
199199
/// The spend activity.
@@ -203,7 +203,7 @@ pub enum ActivityEntry {
203203
}
204204

205205
/// Represents a 'spend' activity event.
206-
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
206+
#[derive(Clone, PartialEq, Debug, Deserialize, Serialize)]
207207
pub struct SpendActivity {
208208
// Note: 'type' field is used for deserialization tag, not included here explicitly.
209209
/// The total amount in BTC of the spent output.
@@ -228,7 +228,7 @@ pub struct SpendActivity {
228228
}
229229

230230
/// Represents a 'receive' activity event.
231-
#[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
231+
#[derive(Clone, PartialEq, Debug, Deserialize, Serialize)]
232232
pub struct ReceiveActivity {
233233
// Note: 'type' field is used for deserialization tag, not included here explicitly.
234234
/// The total amount in BTC of the new output

0 commit comments

Comments
 (0)