Skip to content

Commit df45700

Browse files
Formatting.
1 parent c4878e1 commit df45700

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

build.rs

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,20 @@ fn main() {
33
println!("cargo:rustc-link-arg-bin=flash0802=-Tneotron-flash-0802.ld");
44
println!("cargo:rustc-link-arg-bin=flash0002=-Tneotron-flash-0002.ld");
55

6-
if let Ok(cmd_output) = std::process::Command::new("git")
7-
.arg("describe")
8-
.arg("--all")
9-
.arg("--dirty")
10-
.arg("--long")
11-
.output()
12-
{
13-
let git_version = std::str::from_utf8(&cmd_output.stdout).unwrap();
14-
println!(
15-
"cargo:rustc-env=OS_VERSION={} (git:{})",
16-
env!("CARGO_PKG_VERSION"),
17-
git_version.trim()
18-
);
19-
} else {
20-
println!("cargo:rustc-env=OS_VERSION={}", env!("CARGO_PKG_VERSION"));
21-
}
6+
if let Ok(cmd_output) = std::process::Command::new("git")
7+
.arg("describe")
8+
.arg("--all")
9+
.arg("--dirty")
10+
.arg("--long")
11+
.output()
12+
{
13+
let git_version = std::str::from_utf8(&cmd_output.stdout).unwrap();
14+
println!(
15+
"cargo:rustc-env=OS_VERSION={} (git:{})",
16+
env!("CARGO_PKG_VERSION"),
17+
git_version.trim()
18+
);
19+
} else {
20+
println!("cargo:rustc-env=OS_VERSION={}", env!("CARGO_PKG_VERSION"));
21+
}
2222
}

0 commit comments

Comments
 (0)