From 5847ad2ff194301d2415e27ffbc58644d9f054a3 Mon Sep 17 00:00:00 2001 From: xphoniex Date: Fri, 4 Nov 2022 17:20:46 +0000 Subject: [PATCH] Add `Clone` instance to `Profile` Signed-off-by: xphoniex --- radicle-crypto/src/ssh/keystore.rs | 2 +- radicle/src/profile.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/radicle-crypto/src/ssh/keystore.rs b/radicle-crypto/src/ssh/keystore.rs index 96863da2..49c46472 100644 --- a/radicle-crypto/src/ssh/keystore.rs +++ b/radicle-crypto/src/ssh/keystore.rs @@ -23,7 +23,7 @@ pub enum Error { } /// Stores keys on disk, in OpenSSH format. -#[derive(Debug)] +#[derive(Debug, Clone)] pub struct Keystore { path: PathBuf, } diff --git a/radicle/src/profile.rs b/radicle/src/profile.rs index 3bc129ef..b151557c 100644 --- a/radicle/src/profile.rs +++ b/radicle/src/profile.rs @@ -48,7 +48,7 @@ pub enum Error { KeyNotRegistered(PublicKey), } -#[derive(Debug)] +#[derive(Debug, Clone)] pub struct Profile { pub home: PathBuf, pub storage: Storage,