Skip to content

Commit

Permalink
Renamed _revision to revision as it was used in the windows cfg
Browse files Browse the repository at this point in the history
  • Loading branch information
TheDan64 authored and atroche committed Mar 25, 2019
1 parent 39a0546 commit 167e6aa
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/browser/fetcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -232,21 +232,25 @@ where
}
}

fn archive_name<R: AsRef<str>>(_revision: R) -> Result<&'static str, Error> {
fn archive_name<R: AsRef<str>>(revision: R) -> Result<&'static str, Error> {
#[cfg(target_os = "linux")]
{
drop(revision);

Ok("chrome-linux")
}

#[cfg(target_os = "macos")]
{
drop(revision);

Ok("chrome-mac")
}

#[cfg(windows)]
{
// Windows archive name changed at r591479.
if _revision.as_ref().parse::<u32>()? > 591_479 {
if revision.as_ref().parse::<u32>()? > 591_479 {
Ok("chrome-win")
} else {
Ok("chrome-win32")
Expand Down

0 comments on commit 167e6aa

Please sign in to comment.