Skip to content

Commit

Permalink
use macro for default impl in PairingClient struct
Browse files Browse the repository at this point in the history
  • Loading branch information
borngraced committed Sep 20, 2024
1 parent 71acc1a commit 98211ed
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions pairing_api/src/pairing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,17 +111,11 @@ impl Pairing {
}

/// Client for managing WalletConnect pairings.
#[derive(Debug)]
#[derive(Debug, Default)]
pub struct PairingClient {
pub pairings: Arc<Mutex<HashMap<String, Pairing>>>,
}

impl Default for PairingClient {
fn default() -> Self {
Self::new()
}
}

impl PairingClient {
/// initializes the client with persisted storage and a network connection
pub fn new() -> Self {
Expand Down

0 comments on commit 98211ed

Please sign in to comment.