Skip to content

Commit d15bff6

Browse files
committed
Add Copy derive macro where applicable
1 parent e1b0c0e commit d15bff6

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

plutus-ledger-api/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Changelog](https://keepachangelog.com/en/1.1.0).
1111

1212
- Add `insert_ada_mut` to `Value`
1313
- Add `insert_token_mut` to `Value`
14+
- Add `Copy` derive macro to `Extended<T>` and `Vote`
1415

1516
## v3.0.4
1617

plutus-ledger-api/src/v1/interval.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ where
356356
//////////////
357357

358358
/// A set extended with a positive and negative infinity.
359-
#[derive(Clone, Debug, PartialEq, Eq, Hash)]
359+
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)]
360360
#[cfg_attr(feature = "lbf", derive(Json))]
361361
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
362362
pub enum Extended<T>

plutus-ledger-api/src/v3/transaction.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ pub enum Voter {
326326
// Voter //
327327
///////////
328328

329-
#[derive(Clone, Debug, PartialEq, Eq, PartialOrd, Ord, Hash, IsPlutusData)]
329+
#[derive(Clone, Copy, Debug, PartialEq, Eq, PartialOrd, Ord, Hash, IsPlutusData)]
330330
#[is_plutus_data_derive_strategy = "Constr"]
331331
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
332332
#[cfg_attr(feature = "lbf", derive(Json))]

0 commit comments

Comments
 (0)