diff options
author | Florian Klink <flokli@flokli.de> | 2024-06-28T09·13+0300 |
---|---|---|
committer | flokli <flokli@flokli.de> | 2024-06-28T12·23+0000 |
commit | 327d115f3fe3d855a37425686bb4e0286aaa49dc (patch) | |
tree | d3915057075bde7cf7e35778efd8a03c4dee533b /tvix/nix-compat/src/narinfo/public_keys.rs | |
parent | ade078141612fb98cf7b93fc2dbcda640610d940 (diff) |
feat(nix-compat/narinfo/pubkey): derive Clone, [Partial]Eq r/8318
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
Diffstat (limited to 'tvix/nix-compat/src/narinfo/public_keys.rs')
-rw-r--r-- | tvix/nix-compat/src/narinfo/public_keys.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tvix/nix-compat/src/narinfo/public_keys.rs b/tvix/nix-compat/src/narinfo/public_keys.rs index 27dd90e096db..4739f4fc9212 100644 --- a/tvix/nix-compat/src/narinfo/public_keys.rs +++ b/tvix/nix-compat/src/narinfo/public_keys.rs @@ -11,7 +11,7 @@ use super::Signature; /// This represents a ed25519 public key and "name". /// 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 `:`. -#[derive(Debug)] +#[derive(Clone, Debug, PartialEq, Eq)] pub struct PubKey { name: String, verifying_key: VerifyingKey, |