Skip to content

Commit

Permalink
Ignore unused variable for non-linux builds
Browse files Browse the repository at this point in the history
  • Loading branch information
andrehjr committed Jul 6, 2019
1 parent f0e45bf commit 43cb7d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tools/rustbook/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ pub fn linkcheck(args: &ArgMatches<'_>) -> Result<(), Error> {
}

#[cfg(not(all(target_arch = "x86_64", target_os = "linux")))]
pub fn linkcheck(args: &ArgMatches<'_>) -> Result<(), Error> {
pub fn linkcheck(_args: &ArgMatches<'_>) -> Result<(), Error> {
bail!("mdbook-linkcheck only works on x86_64 linux targets.");
}

Expand Down

0 comments on commit 43cb7d0

Please sign in to comment.