Skip to content

Commit 5600d91

Browse files
committed
sdk: fix fmt
1 parent 0d84b82 commit 5600d91

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,8 @@ impl Drop for Client {
130130
.fetch_update(Ordering::SeqCst, Ordering::SeqCst, |_| Some(true));
131131
let client: Client = self.clone();
132132
thread::spawn(async move {
133-
client.shutdown()
133+
client
134+
.shutdown()
134135
.await
135136
.expect("Impossible to drop the client")
136137
});

crates/nostr/src/message/subscription.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ impl SubscriptionId {
195195

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

0 commit comments

Comments
 (0)