refactor: enhance error handling in Timer and update server argument collection

This commit is contained in:
Tunglies
2025-11-06 10:42:21 +08:00
Unverified
parent 651513c826
commit aaf3ebe547
4 changed files with 11 additions and 6 deletions

View File

@@ -31,6 +31,8 @@ pub async fn check_singleton() -> Result<()> {
let client = ClientBuilder::new()
.timeout(Duration::from_millis(500))
.build()?;
// 需要确保 Send
#[allow(clippy::needless_collect)]
let argvs: Vec<std::string::String> = std::env::args().collect();
if argvs.len() > 1 {
#[cfg(not(target_os = "macos"))]