forked from 1b-agent/opencadstudio-upstream
style: apply cargo fmt across workspace
This commit is contained in:
1 parent
85710e5454
commit
9cf9ff2c5c
531 files changed
+57740
-33906
No files matched your search
@@ -26,8 +26,8 @@ fn main() {
|
||||
println!("cargo:rerun-if-changed=.git/{reference}");
|
||||
}
|
||||
}
|
||||
let revision = git_output(&["rev-parse", "--short=12", "HEAD"])
|
||||
.unwrap_or_else(|| "unknown".to_string());
|
||||
let revision =
|
||||
git_output(&["rev-parse", "--short=12", "HEAD"]).unwrap_or_else(|| "unknown".to_string());
|
||||
// diff-index exits 1 for differences and 128 when there is no repository,
|
||||
// so only a real difference marks the build dirty.
|
||||
let dirty = std::process::Command::new("git")
|
||||
@@ -59,8 +59,8 @@ fn main() {
|
||||
"cargo:rustc-env=OCS_TAG_DISTANCE={}",
|
||||
tag_distance.map_or_else(|| "unknown".to_string(), |n| n.to_string())
|
||||
);
|
||||
let commit_date = git_output(&["log", "-1", "--format=%cs", "HEAD"])
|
||||
.unwrap_or_else(|| "unknown".to_string());
|
||||
let commit_date =
|
||||
git_output(&["log", "-1", "--format=%cs", "HEAD"]).unwrap_or_else(|| "unknown".to_string());
|
||||
println!("cargo:rustc-env=OCS_COMMIT_DATE={commit_date}");
|
||||
|
||||
// Semver-style build metadata: empty for a clean build on the release
|
||||
|
||||
Reference in new issue
Block a user