make clippy happy

This commit is contained in:
Josh Thomas 2025-08-17 17:06:59 -05:00
parent 5370d7fddc
commit 8b94944f0e

View file

@ -8,14 +8,14 @@ use anyhow::Result;
fn main() -> Result<()> { fn main() -> Result<()> {
// Kill any existing session // Kill any existing session
let _ = Command::new("tmux") let _ = Command::new("tmux")
.args(&["kill-session", "-t", "djls-debug"]) .args(["kill-session", "-t", "djls-debug"])
.output(); .output();
let _ = Command::new("pkill").args(&["-f", "lsp-devtools"]).output(); let _ = Command::new("pkill").args(["-f", "lsp-devtools"]).output();
// Start tmux in control mode // Start tmux in control mode
let mut tmux = Command::new("tmux") let mut tmux = Command::new("tmux")
.args(&["-C", "-f", "/dev/null"]) .args(["-C", "-f", "/dev/null"])
.stdin(Stdio::piped()) .stdin(Stdio::piped())
.stdout(Stdio::piped()) .stdout(Stdio::piped())
.spawn() .spawn()
@ -86,12 +86,12 @@ fn main() -> Result<()> {
// Attach to session // Attach to session
Command::new("tmux") Command::new("tmux")
.args(&["attach-session", "-t", "djls-debug"]) .args(["attach-session", "-t", "djls-debug"])
.status() .status()
.context("Failed to attach to session")?; .context("Failed to attach to session")?;
// Cleanup on exit // Cleanup on exit
let _ = Command::new("pkill").args(&["-f", "lsp-devtools"]).output(); let _ = Command::new("pkill").args(["-f", "lsp-devtools"]).output();
Ok(()) Ok(())
} }