feat(nix-compat/narinfo/pubkey): derive Clone, [Partial]Eq

We want to use this in another struct that we want to compare and clone.

Change-Id: I5c11d589a4922d85e190e1a9199468411016ff1e
Reviewed-on: https://cl.tvl.fyi/c/depot/+/11887
Autosubmit: flokli <flokli@flokli.de>
Reviewed-by: Brian Olsen <me@griff.name>
Tested-by: BuildkiteCI
This commit is contained in:
Florian Klink 2024-06-28 12:13:44 +03:00 committed by flokli
parent ade0781416
commit 327d115f3f

View file

@ -11,7 +11,7 @@ use super::Signature;
/// This represents a ed25519 public key and "name". /// This represents a ed25519 public key and "name".
/// These are normally passed in the `trusted-public-keys` Nix config option, /// These are normally passed in the `trusted-public-keys` Nix config option,
/// and consist of a name and base64-encoded ed25519 pubkey, separated by a `:`. /// and consist of a name and base64-encoded ed25519 pubkey, separated by a `:`.
#[derive(Debug)] #[derive(Clone, Debug, PartialEq, Eq)]
pub struct PubKey { pub struct PubKey {
name: String, name: String,
verifying_key: VerifyingKey, verifying_key: VerifyingKey,