@@ -28,6 +28,7 @@ use nostr::{
|
||||
parser::Token,
|
||||
types::{RelayUrl, Url},
|
||||
};
|
||||
use nostr_keyring::KeyringError;
|
||||
|
||||
use crate::cli::issue::ISSUE_ALT_PREFIX;
|
||||
use crate::cli::patch::{REVISION_ROOT_HASHTAG_CONTENT, ROOT_HASHTAG_CONTENT};
|
||||
@@ -307,6 +308,6 @@ impl nostr_keyring::Error {
|
||||
/// Checks if the error indicates a missing keyring entry.
|
||||
#[inline]
|
||||
pub fn is_keyring_no_entry(&self) -> bool {
|
||||
matches!(self, nostr_keyring::Error::Keyring(keyring::Error::NoEntry))
|
||||
matches!(self, nostr_keyring::Error::Keyring(KeyringError::NoEntry))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -151,9 +151,8 @@ pub fn repo_naddr(
|
||||
) -> N34Result<String> {
|
||||
Nip19Coordinate::new(
|
||||
Coordinate::new(Kind::GitRepoAnnouncement, pubk).identifier(repo_id),
|
||||
dedup(relays.iter().cloned()).iter().take(3),
|
||||
dedup(relays.iter().cloned()).into_iter().take(3),
|
||||
)
|
||||
.expect("Valid relays")
|
||||
.to_bech32()
|
||||
.map_err(N34Error::from)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user