From f7d520e9ccb6084144a3e963516e40a322add0c8 Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Fri, 22 Mar 2024 15:51:31 +0000 Subject: use Sha1Hashin new location it had moved from 'prelude' to 'hashes' --- src/git.rs | 2 +- src/sub_commands/push.rs | 2 +- src/sub_commands/send.rs | 6 ++---- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/git.rs b/src/git.rs index 86b59fb..77c1dcb 100644 --- a/src/git.rs +++ b/src/git.rs @@ -4,7 +4,7 @@ use std::{env::current_dir, path::Path}; use anyhow::{bail, Context, Result}; use git2::{DiffOptions, Oid, Revwalk}; -use nostr::prelude::{sha1::Hash as Sha1Hash, Hash}; +use nostr_sdk::hashes::{sha1::Hash as Sha1Hash, Hash}; use crate::sub_commands::list::{get_commit_id_from_patch, tag_value}; diff --git a/src/sub_commands/push.rs b/src/sub_commands/push.rs index 651b250..bb50ee2 100644 --- a/src/sub_commands/push.rs +++ b/src/sub_commands/push.rs @@ -1,5 +1,5 @@ use anyhow::{bail, Context, Result}; -use nostr::prelude::sha1::Hash as Sha1Hash; +use nostr_sdk::hashes::sha1::Hash as Sha1Hash; #[cfg(not(test))] use crate::client::Client; diff --git a/src/sub_commands/send.rs b/src/sub_commands/send.rs index 35c2c81..cc182f1 100644 --- a/src/sub_commands/send.rs +++ b/src/sub_commands/send.rs @@ -4,10 +4,8 @@ use anyhow::{bail, Context, Result}; use console::Style; use futures::future::join_all; use indicatif::{MultiProgress, ProgressBar, ProgressStyle}; -use nostr::{ - nips::nip19::Nip19, prelude::sha1::Hash as Sha1Hash, EventBuilder, FromBech32, Marker, Tag, - TagKind, UncheckedUrl, -}; +use nostr::{nips::nip19::Nip19, EventBuilder, FromBech32, Marker, Tag, TagKind, UncheckedUrl}; +use nostr_sdk::hashes::sha1::Hash as Sha1Hash; use super::list::tag_value; #[cfg(not(test))] -- cgit v1.2.3