mirror of
https://github.com/geoffsee/predict-otron-9001.git
synced 2025-09-08 22:46:44 +00:00
fmt and clippy
This commit is contained in:
@@ -24,8 +24,7 @@ fn run_build() -> io::Result<()> {
|
||||
let out_dir = PathBuf::from(env::var("OUT_DIR").expect("OUT_DIR not set by Cargo"));
|
||||
let output_path = out_dir.join("client-cli");
|
||||
|
||||
let bun_tgt = BunTarget::from_cargo_env()
|
||||
.map_err(|e| io::Error::other(e.to_string()))?;
|
||||
let bun_tgt = BunTarget::from_cargo_env().map_err(|e| io::Error::other(e.to_string()))?;
|
||||
|
||||
// Optional: warn if using a Bun target that’s marked unsupported in your chart
|
||||
if matches!(bun_tgt, BunTarget::WindowsArm64) {
|
||||
@@ -54,9 +53,9 @@ fn run_build() -> io::Result<()> {
|
||||
|
||||
if !install_status.success() {
|
||||
let code = install_status.code().unwrap_or(1);
|
||||
return Err(io::Error::other(
|
||||
format!("bun install failed with status {code}"),
|
||||
));
|
||||
return Err(io::Error::other(format!(
|
||||
"bun install failed with status {code}"
|
||||
)));
|
||||
}
|
||||
|
||||
let _target = env::var("TARGET").unwrap();
|
||||
|
Reference in New Issue
Block a user