Skip to content

Commit

Permalink
Update compile-test to follow new lint
Browse files Browse the repository at this point in the history
  • Loading branch information
JarredAllen committed Jul 1, 2020
1 parent e020e17 commit d9fe3b0
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions tests/compile-test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,11 @@ use std::path::{Path, PathBuf};
mod cargo;

fn host_lib() -> PathBuf {
if let Some(path) = option_env!("HOST_LIBS") {
PathBuf::from(path)
} else {
cargo::CARGO_TARGET_DIR.join(env!("PROFILE"))
}
option_env!("HOST_LIBS").map_or(cargo::CARGO_TARGET_DIR.join(env!("PROFILE")), PathBuf::from)
}

fn clippy_driver_path() -> PathBuf {
if let Some(path) = option_env!("CLIPPY_DRIVER_PATH") {
PathBuf::from(path)
} else {
cargo::TARGET_LIB.join("clippy-driver")
}
option_env!("CLIPPY_DRIVER_PATH").map_or(cargo::TARGET_LIB.join("clippy-driver"), PathBuf::from)
}

// When we'll want to use `extern crate ..` for a dependency that is used
Expand Down

0 comments on commit d9fe3b0

Please sign in to comment.