diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2024-12-20 08:07:22 +0000 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2024-12-20 08:07:22 +0000 |
| commit | 8cc4a21061433c9a29e36c4f33e4d84bea1defee (patch) | |
| tree | 2bb56276d12612585da5f0bd0e7246a5b6b1c535 /src/bin/git_remote_nostr/fetch.rs | |
| parent | cc87576cdfdd3aa18df6e94fbfa079d9e4f0241a (diff) | |
refactor: use nostr url from repo_ref
simplify to allow the removal of warning:
`#[allow(clippy::too_many_arguments)]`
Diffstat (limited to 'src/bin/git_remote_nostr/fetch.rs')
| -rw-r--r-- | src/bin/git_remote_nostr/fetch.rs | 3 |
1 files changed, 1 insertions, 2 deletions
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::{ | |||
| 32 | pub async fn run_fetch( | 32 | pub async fn run_fetch( |
| 33 | git_repo: &Repo, | 33 | git_repo: &Repo, |
| 34 | repo_ref: &RepoRef, | 34 | repo_ref: &RepoRef, |
| 35 | decoded_nostr_url: &NostrUrlDecoded, | ||
| 36 | stdin: &Stdin, | 35 | stdin: &Stdin, |
| 37 | oid: &str, | 36 | oid: &str, |
| 38 | refstr: &str, | 37 | refstr: &str, |
| @@ -54,7 +53,7 @@ pub async fn run_fetch( | |||
| 54 | git_repo, | 53 | git_repo, |
| 55 | &oids_from_git_servers, | 54 | &oids_from_git_servers, |
| 56 | git_server_url, | 55 | git_server_url, |
| 57 | decoded_nostr_url, | 56 | &repo_ref.to_nostr_git_url(&None), |
| 58 | &term, | 57 | &term, |
| 59 | ) { | 58 | ) { |
| 60 | errors.push(error); | 59 | errors.push(error); |