mirror of
https://github.com/joshuadavidthomas/django-language-server.git
synced 2025-09-07 19:00:35 +00:00
make clippy happy
This commit is contained in:
parent
5370d7fddc
commit
8b94944f0e
1 changed files with 5 additions and 5 deletions
|
@ -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(())
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue