Skip to content

Commit b76ec77

Browse files
committed
build.rs: fix clippy::items_after_statements
1 parent b39d02a commit b76ec77

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

build.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ use std::io::Write;
1111
use std::path::Path;
1212

1313
pub fn main() {
14-
if let Ok(profile) = env::var("PROFILE") {
15-
println!("cargo:rustc-cfg=build={profile:?}");
16-
}
17-
1814
const ENV_FEATURE_PREFIX: &str = "CARGO_FEATURE_";
1915
const FEATURE_PREFIX: &str = "feat_";
2016
const OVERRIDE_PREFIX: &str = "uu_";
2117

18+
if let Ok(profile) = env::var("PROFILE") {
19+
println!("cargo:rustc-cfg=build={profile:?}");
20+
}
21+
2222
let out_dir = env::var("OUT_DIR").unwrap();
2323

2424
let mut crates = Vec::new();

0 commit comments

Comments
 (0)