chore: 未使用インポートの削除と軽微な警告修正

This commit is contained in:
Selfhosting Dev
2025-09-16 04:23:20 +09:00
parent edd95406aa
commit 18bc386bc5
10 changed files with 15 additions and 18 deletions

View File

@ -1,6 +1,6 @@
use clap::{Arg, ArgAction, Command, value_parser};
use clap::{Arg, ArgAction, Command};
use std::fs::{self, File};
use std::io::{self, Read, Write};
use std::io::{self, Read};
use std::path::{Path, PathBuf};
use std::process::{Command as PCommand, Stdio};
@ -117,11 +117,12 @@ fn current_dir_bin(name: &str) -> PathBuf {
}
}
// Fallback to target/release
let mut cand = PathBuf::from("target/release").join(name);
let cand = PathBuf::from("target/release").join(name);
if cand.exists() { return cand; }
#[cfg(windows)]
{
cand = PathBuf::from("target/release").join(format!("{}.exe", name));
let cand = PathBuf::from("target/release").join(format!("{}.exe", name));
return cand;
}
cand
}