diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2024-03-22 15:51:31 +0000 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2024-03-22 15:51:31 +0000 |
| commit | f7d520e9ccb6084144a3e963516e40a322add0c8 (patch) | |
| tree | ff166ff791d4cd744fd4818d853a558aefb87877 /src | |
| parent | 07a6b27eacc9cb80b0858ae8d7042287567ea790 (diff) | |
use Sha1Hashin new location
it had moved from 'prelude' to 'hashes'
Diffstat (limited to 'src')
| -rw-r--r-- | src/git.rs | 2 | ||||
| -rw-r--r-- | src/sub_commands/push.rs | 2 | ||||
| -rw-r--r-- | src/sub_commands/send.rs | 6 |
3 files changed, 4 insertions, 6 deletions
| @@ -4,7 +4,7 @@ use std::{env::current_dir, path::Path}; | |||
| 4 | 4 | ||
| 5 | use anyhow::{bail, Context, Result}; | 5 | use anyhow::{bail, Context, Result}; |
| 6 | use git2::{DiffOptions, Oid, Revwalk}; | 6 | use git2::{DiffOptions, Oid, Revwalk}; |
| 7 | use nostr::prelude::{sha1::Hash as Sha1Hash, Hash}; | 7 | use nostr_sdk::hashes::{sha1::Hash as Sha1Hash, Hash}; |
| 8 | 8 | ||
| 9 | use crate::sub_commands::list::{get_commit_id_from_patch, tag_value}; | 9 | use 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 @@ | |||
| 1 | use anyhow::{bail, Context, Result}; | 1 | use anyhow::{bail, Context, Result}; |
| 2 | use nostr::prelude::sha1::Hash as Sha1Hash; | 2 | use nostr_sdk::hashes::sha1::Hash as Sha1Hash; |
| 3 | 3 | ||
| 4 | #[cfg(not(test))] | 4 | #[cfg(not(test))] |
| 5 | use crate::client::Client; | 5 | 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}; | |||
| 4 | use console::Style; | 4 | use console::Style; |
| 5 | use futures::future::join_all; | 5 | use futures::future::join_all; |
| 6 | use indicatif::{MultiProgress, ProgressBar, ProgressStyle}; | 6 | use indicatif::{MultiProgress, ProgressBar, ProgressStyle}; |
| 7 | use nostr::{ | 7 | use nostr::{nips::nip19::Nip19, EventBuilder, FromBech32, Marker, Tag, TagKind, UncheckedUrl}; |
| 8 | nips::nip19::Nip19, prelude::sha1::Hash as Sha1Hash, EventBuilder, FromBech32, Marker, Tag, | 8 | use nostr_sdk::hashes::sha1::Hash as Sha1Hash; |
| 9 | TagKind, UncheckedUrl, | ||
| 10 | }; | ||
| 11 | 9 | ||
| 12 | use super::list::tag_value; | 10 | use super::list::tag_value; |
| 13 | #[cfg(not(test))] | 11 | #[cfg(not(test))] |