brycx / pasetors

PASETOrs: PASETO tokens in pure Rust
MIT License
87 stars 9 forks source link

`AsymmetricPublicKey` does not implement clone? #54

Closed Eh2406 closed 2 years ago

Eh2406 commented 2 years ago

I was surprised to discover that AsymmetricPublicKey does not implement clone. I was wondering if there's a reason? If not we should audit all types for clone impls.

brycx commented 2 years ago

I'm not at a computer atm, but I can't think of a reason. But if it's missing there, then yes we should check the remaining types as well.

brycx commented 2 years ago

Included in the latest prerelease: https://crates.io/crates/pasetors/0.5.0-alpha.6