upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2024-03-22 15:51:31 +0000
committerDanConwayDev <DanConwayDev@protonmail.com>2024-03-22 15:51:31 +0000
commitf7d520e9ccb6084144a3e963516e40a322add0c8 (patch)
treeff166ff791d4cd744fd4818d853a558aefb87877 /src
parent07a6b27eacc9cb80b0858ae8d7042287567ea790 (diff)
use Sha1Hashin new location
it had moved from 'prelude' to 'hashes'
Diffstat (limited to 'src')
-rw-r--r--src/git.rs2
-rw-r--r--src/sub_commands/push.rs2
-rw-r--r--src/sub_commands/send.rs6
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};
4 4
5use anyhow::{bail, Context, Result}; 5use anyhow::{bail, Context, Result};
6use git2::{DiffOptions, Oid, Revwalk}; 6use git2::{DiffOptions, Oid, Revwalk};
7use nostr::prelude::{sha1::Hash as Sha1Hash, Hash}; 7use nostr_sdk::hashes::{sha1::Hash as Sha1Hash, Hash};
8 8
9use crate::sub_commands::list::{get_commit_id_from_patch, tag_value}; 9use crate::sub_commands::list::{get_commit_id_from_patch, tag_value};
10 10
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 @@
1use anyhow::{bail, Context, Result}; 1use anyhow::{bail, Context, Result};
2use nostr::prelude::sha1::Hash as Sha1Hash; 2use nostr_sdk::hashes::sha1::Hash as Sha1Hash;
3 3
4#[cfg(not(test))] 4#[cfg(not(test))]
5use crate::client::Client; 5use 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};
4use console::Style; 4use console::Style;
5use futures::future::join_all; 5use futures::future::join_all;
6use indicatif::{MultiProgress, ProgressBar, ProgressStyle}; 6use indicatif::{MultiProgress, ProgressBar, ProgressStyle};
7use nostr::{ 7use nostr::{nips::nip19::Nip19, EventBuilder, FromBech32, Marker, Tag, TagKind, UncheckedUrl};
8 nips::nip19::Nip19, prelude::sha1::Hash as Sha1Hash, EventBuilder, FromBech32, Marker, Tag, 8use nostr_sdk::hashes::sha1::Hash as Sha1Hash;
9 TagKind, UncheckedUrl,
10};
11 9
12use super::list::tag_value; 10use super::list::tag_value;
13#[cfg(not(test))] 11#[cfg(not(test))]