summaryrefslogtreecommitdiff
path: root/support/texlab/src/distro/kpsewhich.rs
diff options
context:
space:
mode:
Diffstat (limited to 'support/texlab/src/distro/kpsewhich.rs')
-rw-r--r--support/texlab/src/distro/kpsewhich.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/support/texlab/src/distro/kpsewhich.rs b/support/texlab/src/distro/kpsewhich.rs
index 0a6d1d35ad..24f4a3531a 100644
--- a/support/texlab/src/distro/kpsewhich.rs
+++ b/support/texlab/src/distro/kpsewhich.rs
@@ -3,9 +3,9 @@ use std::{env, ffi::OsStr, path::PathBuf, process::Command};
use anyhow::Result;
pub fn root_directories() -> Result<Vec<PathBuf>> {
- let texmf = run(&["-var-value", "TEXMF"])?;
+ let texmf = run(["-var-value", "TEXMF"])?;
let expand_arg = format!("--expand-braces={}", texmf);
- let expanded = run(&[&expand_arg])?;
+ let expanded = run([&expand_arg])?;
let directories = env::split_paths(&expanded.replace('!', ""))
.filter(|path| path.exists())
.collect();