Skip to content

Commit 3461c04

Browse files
committed
nostr: update Nip19Coordinate::new signature
Follow-up of 5f7cba4 Signed-off-by: Yuki Kishimoto <[email protected]>
1 parent 9792259 commit 3461c04

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

crates/nostr/src/nips/nip19.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -673,14 +673,14 @@ impl Deref for Nip19Coordinate {
673673
}
674674

675675
impl Nip19Coordinate {
676-
pub fn new<I>(coordinate: Coordinate, relays: I) -> Result<Self, Error>
676+
pub fn new<I>(coordinate: Coordinate, relays: I) -> Self
677677
where
678678
I: IntoIterator<Item = RelayUrl>,
679679
{
680-
Ok(Self {
680+
Self {
681681
coordinate,
682682
relays: relays.into_iter().collect(),
683-
})
683+
}
684684
}
685685

686686
fn from_bech32_data(mut data: Vec<u8>) -> Result<Self, Error> {

0 commit comments

Comments
 (0)