fix: satisfy release gate clippy policy

This commit is contained in:
2026-09-15 10:19:41 +02:00
parent cca037d937
commit 08c998c216
+3 -2
View File
@@ -126,7 +126,8 @@ fn validate_static_root() -> PreparedStatic {
);
let manifest_dir = PathBuf::from(
env::var_os("CARGO_MANIFEST_DIR").expect("Cargo must set CARGO_MANIFEST_DIR"),
env::var_os("CARGO_MANIFEST_DIR")
.unwrap_or_else(|| panic!("Cargo must set CARGO_MANIFEST_DIR")),
);
let source = manifest_dir.join("../../vendor/occt");
require_dir(&source, "initialized vendor/occt submodule");
@@ -230,7 +231,7 @@ fn git_revision(source: &Path) -> String {
panic!("cannot inspect vendor/occt revision");
}
String::from_utf8(output.stdout)
.expect("git revision must be UTF-8")
.unwrap_or_else(|error| panic!("git revision must be UTF-8: {error}"))
.trim()
.to_owned()
}