Skip to content

Commit a396ba4

Browse files
committed
nostr: impl ToNostrUri for CoordinateBorrow
Signed-off-by: Yuki Kishimoto <[email protected]>
1 parent b292a61 commit a396ba4

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

crates/nostr/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
- Add NIP-60 support (https://github.com/rust-nostr/nostr/pull/1092)
4646
- Implement `ToBech32` trait for `Nip21`
4747
- Implement `ToBech32` for `CoordinateBorrow`
48+
- Implement `ToNostrUri` for `CoordinateBorrow`
4849
- Implement `From<&Event>` for `Nip19Event`
4950
- Add `CowTag::kind` and `CowTag::content`
5051
- Add `Timestamp::as_secs`

crates/nostr/src/nips/nip01.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ use serde::{Deserialize, Serialize};
1818
use serde_json::Value;
1919

2020
use super::nip19::{self, FromBech32, ToBech32};
21-
use super::nip21::FromNostrUri;
21+
use super::nip21::{FromNostrUri, ToNostrUri};
2222
use crate::types::Url;
2323
use crate::{key, Filter, JsonUtil, Kind, PublicKey, Tag};
2424

@@ -255,6 +255,8 @@ impl ToBech32 for CoordinateBorrow<'_> {
255255
}
256256
}
257257

258+
impl ToNostrUri for CoordinateBorrow<'_> {}
259+
258260
/// Metadata
259261
#[derive(Debug, Clone, Default, PartialEq, Eq, Hash, Serialize, Deserialize)]
260262
pub struct Metadata {

0 commit comments

Comments
 (0)