Skip to content

Commit

Permalink
build.rs: fix clippy::items_after_statements
Browse files Browse the repository at this point in the history
  • Loading branch information
cakebaker committed Oct 3, 2024
1 parent b39d02a commit b76ec77
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ use std::io::Write;
use std::path::Path;

pub fn main() {
if let Ok(profile) = env::var("PROFILE") {
println!("cargo:rustc-cfg=build={profile:?}");
}

const ENV_FEATURE_PREFIX: &str = "CARGO_FEATURE_";
const FEATURE_PREFIX: &str = "feat_";
const OVERRIDE_PREFIX: &str = "uu_";

if let Ok(profile) = env::var("PROFILE") {
println!("cargo:rustc-cfg=build={profile:?}");
}

let out_dir = env::var("OUT_DIR").unwrap();

let mut crates = Vec::new();
Expand Down

0 comments on commit b76ec77

Please sign in to comment.