Skip to content

Commit

Permalink
Fix Windows target
Browse files Browse the repository at this point in the history
  • Loading branch information
mo8it committed Aug 12, 2024
1 parent 8edbe3d commit 95f1890
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/downloader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,8 @@ fn filename_for_version(version: &Version, arch: Arch) -> String {
}

#[cfg(windows)]
fn filename_for_version(version: &Version, arch: &Arch) -> String {
format!(
"node-{node_ver}-win-{arch}.zip",
node_ver = &version,
arch = arch,
)
fn filename_for_version(version: &Version, arch: Arch) -> String {
format!("node-{node_ver}-win-{arch}.zip", node_ver = &version)
}

fn download_url(base_url: &Url, version: &Version, arch: Arch) -> Url {
Expand Down

0 comments on commit 95f1890

Please sign in to comment.