Skip to content

Commit 2ff99ce

Browse files
committed
Format with rustfmt 0.99.2
1 parent b07f847 commit 2ff99ce

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

build.rs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ fn main() {
88
let target = env::var("TARGET").unwrap();
99

1010
if !enable_use_proc_macro(&target) {
11-
return
11+
return;
1212
}
1313
println!("cargo:rustc-cfg=use_proc_macro");
1414

@@ -40,7 +40,12 @@ fn enable_use_proc_macro(target: &str) -> bool {
4040

4141
fn rustc_minor_version() -> Option<u32> {
4242
macro_rules! otry {
43-
($e:expr) => (match $e { Some(e) => e, None => return None })
43+
($e:expr) => {
44+
match $e {
45+
Some(e) => e,
46+
None => return None,
47+
}
48+
};
4449
}
4550
let rustc = otry!(env::var_os("RUSTC"));
4651
let output = otry!(Command::new(rustc).arg("--version").output().ok());

0 commit comments

Comments
 (0)