Skip to content

Commit eb5c889

Browse files
committed
Revert "nostr: impl Copy for Keys"
This reverts commit 0d84b82.
1 parent d387170 commit eb5c889

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

crates/nostr-sdk/src/client/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ impl Client {
167167
pub fn with_opts(keys: &Keys, opts: Options) -> Self {
168168
Self {
169169
pool: RelayPool::new(opts.pool),
170-
keys: *keys,
170+
keys: keys.clone(),
171171
opts,
172172
dropped: Arc::new(AtomicBool::new(false)),
173173
#[cfg(feature = "nip46")]
@@ -190,7 +190,7 @@ impl Client {
190190
) -> Self {
191191
Self {
192192
pool: RelayPool::new(opts.pool),
193-
keys: *app_keys,
193+
keys: app_keys.clone(),
194194
opts,
195195
dropped: Arc::new(AtomicBool::new(false)),
196196
remote_signer: Some(remote_signer),
@@ -204,7 +204,7 @@ impl Client {
204204

205205
/// Get current [`Keys`]
206206
pub fn keys(&self) -> Keys {
207-
self.keys
207+
self.keys.clone()
208208
}
209209

210210
/// Get [`RelayPool`]

crates/nostr/src/key/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ pub trait FromPkStr: Sized {
8181
}
8282

8383
/// Keys
84-
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
84+
#[derive(Debug, Clone, PartialEq, Eq)]
8585
pub struct Keys {
8686
public_key: XOnlyPublicKey,
8787
key_pair: Option<KeyPair>,

0 commit comments

Comments
 (0)