Skip to content

Commit 3780427

Browse files
authored
crypto_box: derive Copy for PublicKey (#173)
1 parent 08aeb28 commit 3780427

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crypto_box/src/public_key.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ use serdect::serde::{de, ser, Deserialize, Serialize};
1515
/// A `crypto_box` public key.
1616
///
1717
/// This type can be serialized if the `serde` feature is enabled.
18-
#[derive(Clone, Debug, Eq, PartialEq, Hash)]
18+
#[derive(Clone, Copy, Debug, Eq, PartialEq, Hash)]
1919
pub struct PublicKey(pub(crate) MontgomeryPoint);
2020

2121
impl PublicKey {

0 commit comments

Comments
 (0)