Skip to content

Commit

Permalink
sdk: fix fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
yukibtc committed Sep 14, 2023
1 parent 0d84b82 commit 5600d91
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion crates/nostr-sdk/src/client/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,8 @@ impl Drop for Client {
.fetch_update(Ordering::SeqCst, Ordering::SeqCst, |_| Some(true));
let client: Client = self.clone();
thread::spawn(async move {
client.shutdown()
client
.shutdown()
.await
.expect("Impossible to drop the client")
});
Expand Down
2 changes: 1 addition & 1 deletion crates/nostr/src/message/subscription.rs
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ impl SubscriptionId {

impl fmt::Display for SubscriptionId {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
write!(f, "{}", self.0.clone())
write!(f, "{}", self.0)
}
}

Expand Down

0 comments on commit 5600d91

Please sign in to comment.