chore(lint): extend low-risk clippy cleanup batch

- normalize numeric literals (115_200) in hardware/peripheral config paths

- remove test-only useless format! allocations in discord IDs

- simplify closures and auto-deref in browser/http/rag/peripherals

- keep behavior unchanged while reducing warning surface
This commit is contained in:
Chummy 2026-02-17 16:33:10 +08:00
parent 4413790859
commit abdf99cf8c
8 changed files with 12 additions and 14 deletions

View file

@ -91,7 +91,7 @@ pub fn handle_command(cmd: crate::PeripheralCommands, config: &Config) -> Result
board: board.clone(),
transport: transport.to_string(),
path: path_opt,
baud: 115200,
baud: 115_200,
});
cfg.save()?;
println!("Added {} at {}. Restart daemon to apply.", board, path);

View file

@ -76,7 +76,7 @@ impl SerialTransport {
let mut port = self.port.lock().await;
let resp = tokio::time::timeout(
std::time::Duration::from_secs(SERIAL_TIMEOUT_SECS),
send_request(&mut *port, cmd, args),
send_request(&mut port, cmd, args),
)
.await
.map_err(|_| {

View file

@ -66,7 +66,7 @@ fn deploy_remote(host: &str, bridge_dir: &std::path::Path) -> Result<()> {
"arduino-app-cli",
"app",
"start",
&format!("~/ArduinoApps/zeroclaw-uno-q-bridge"),
"~/ArduinoApps/zeroclaw-uno-q-bridge",
])
.status()
.context("arduino-app-cli start failed")?;