Skip to content

Commit 349d5a8

Browse files
committed
Use env!(...) instead of env::var(...).unwrap() for environment variables set by build.rs.
1 parent f273779 commit 349d5a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

c2rust-analyze/tests/filecheck.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use std::process::{Command, Stdio};
77

88
#[test]
99
fn filecheck() {
10-
let lib_dir = env::var("C2RUST_TARGET_LIB_DIR").unwrap();
10+
let lib_dir = env!("C2RUST_TARGET_LIB_DIR");
1111
let lib_dir = &lib_dir;
1212

1313
let filecheck_bin = env::var_os("FILECHECK")

0 commit comments

Comments
 (0)