Skip to content

Commit

Permalink
refactor: shorten local fn name
Browse files Browse the repository at this point in the history
  • Loading branch information
JyJyJcr authored and dekobon committed Apr 1, 2024
1 parent ea796df commit 1c934c4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions nginx-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -253,14 +253,14 @@ fn all_archives() -> Vec<(String, String)> {
}
.into()
});
fn easy_make_url_pair(tar_url: String, pgp_ext: &str) -> (String, String) {
fn url_pair(tar_url: String, pgp_ext: &str) -> (String, String) {
(tar_url.clone(), format!("{tar_url}.{pgp_ext}"))
}
vec![
easy_make_url_pair(zlib_archive_url(&zlib_version), "asc"),
easy_make_url_pair(pcre_archive_url(&pcre_version), "sig"),
easy_make_url_pair(openssl_archive_url(&openssl_version), "asc"),
easy_make_url_pair(nginx_archive_url(&ngx_version), "asc"),
url_pair(zlib_archive_url(&zlib_version), "asc"),
url_pair(pcre_archive_url(&pcre_version), "sig"),
url_pair(openssl_archive_url(&openssl_version), "asc"),
url_pair(nginx_archive_url(&ngx_version), "asc"),
]
}

Expand Down

0 comments on commit 1c934c4

Please sign in to comment.