From 8cc4a21061433c9a29e36c4f33e4d84bea1defee Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Fri, 20 Dec 2024 08:07:22 +0000 Subject: refactor: use nostr url from repo_ref simplify to allow the removal of warning: `#[allow(clippy::too_many_arguments)]` --- src/bin/git_remote_nostr/fetch.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/bin/git_remote_nostr/fetch.rs') diff --git a/src/bin/git_remote_nostr/fetch.rs b/src/bin/git_remote_nostr/fetch.rs index 7012955..024a923 100644 --- a/src/bin/git_remote_nostr/fetch.rs +++ b/src/bin/git_remote_nostr/fetch.rs @@ -32,7 +32,6 @@ use crate::utils::{ pub async fn run_fetch( git_repo: &Repo, repo_ref: &RepoRef, - decoded_nostr_url: &NostrUrlDecoded, stdin: &Stdin, oid: &str, refstr: &str, @@ -54,7 +53,7 @@ pub async fn run_fetch( git_repo, &oids_from_git_servers, git_server_url, - decoded_nostr_url, + &repo_ref.to_nostr_git_url(&None), &term, ) { errors.push(error); -- cgit v1.2.3