chore: Use bitcoin_hashes::Sha1 instead of bitcoin_hashes::sha1::Hash
Signed-off-by: Awiteb <a@4rs.nl>
This commit is contained in:
@@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
use std::{fs, str::FromStr};
|
use std::{fs, str::FromStr};
|
||||||
|
|
||||||
use bitcoin_hashes::sha1::Hash as HashSha1;
|
use bitcoin_hashes::Sha1;
|
||||||
use clap::Args;
|
use clap::Args;
|
||||||
use futures::future;
|
use futures::future;
|
||||||
use nostr::{
|
use nostr::{
|
||||||
@@ -63,7 +63,7 @@ pub struct SendArgs {
|
|||||||
/// Can be obtained by running `git rev-parse master` (replace 'master' with
|
/// Can be obtained by running `git rev-parse master` (replace 'master' with
|
||||||
/// your base branch name).
|
/// your base branch name).
|
||||||
#[arg(long, value_name = "COMMIT-ID")]
|
#[arg(long, value_name = "COMMIT-ID")]
|
||||||
euc: HashSha1,
|
euc: Sha1,
|
||||||
/// Original patch ID if this is a revision of it
|
/// Original patch ID if this is a revision of it
|
||||||
#[arg(long, value_name = "EVENT-ID")]
|
#[arg(long, value_name = "EVENT-ID")]
|
||||||
original_patch: Option<NostrEvent>,
|
original_patch: Option<NostrEvent>,
|
||||||
@@ -156,7 +156,7 @@ async fn make_patch_series(
|
|||||||
original_patch: Option<EventId>,
|
original_patch: Option<EventId>,
|
||||||
relay_hint: Option<RelayUrl>,
|
relay_hint: Option<RelayUrl>,
|
||||||
repo_coordinates: Vec<Coordinate>,
|
repo_coordinates: Vec<Coordinate>,
|
||||||
euc: &HashSha1,
|
euc: &Sha1,
|
||||||
author_pkey: PublicKey,
|
author_pkey: PublicKey,
|
||||||
) -> N34Result<(Vec<UnsignedEvent>, Vec<RelayUrl>)> {
|
) -> N34Result<(Vec<UnsignedEvent>, Vec<RelayUrl>)> {
|
||||||
let mut write_relays = Vec::new();
|
let mut write_relays = Vec::new();
|
||||||
@@ -207,7 +207,7 @@ async fn make_patch(
|
|||||||
reply_to: Option<EventId>,
|
reply_to: Option<EventId>,
|
||||||
write_relay: Option<&RelayUrl>,
|
write_relay: Option<&RelayUrl>,
|
||||||
repo_coordinates: &[Coordinate],
|
repo_coordinates: &[Coordinate],
|
||||||
euc: &HashSha1,
|
euc: &Sha1,
|
||||||
author_pkey: PublicKey,
|
author_pkey: PublicKey,
|
||||||
) -> (UnsignedEvent, Vec<RelayUrl>) {
|
) -> (UnsignedEvent, Vec<RelayUrl>) {
|
||||||
let content_details = client.parse_content(&patch.body).await;
|
let content_details = client.parse_content(&patch.body).await;
|
||||||
|
|||||||
Reference in New Issue
Block a user