We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b07f847 commit 2ff99ceCopy full SHA for 2ff99ce
build.rs
@@ -8,7 +8,7 @@ fn main() {
8
let target = env::var("TARGET").unwrap();
9
10
if !enable_use_proc_macro(&target) {
11
- return
+ return;
12
}
13
println!("cargo:rustc-cfg=use_proc_macro");
14
@@ -40,7 +40,12 @@ fn enable_use_proc_macro(target: &str) -> bool {
40
41
fn rustc_minor_version() -> Option<u32> {
42
macro_rules! otry {
43
- ($e:expr) => (match $e { Some(e) => e, None => return None })
+ ($e:expr) => {
44
+ match $e {
45
+ Some(e) => e,
46
+ None => return None,
47
+ }
48
+ };
49
50
let rustc = otry!(env::var_os("RUSTC"));
51
let output = otry!(Command::new(rustc).arg("--version").output().ok());
0 commit comments