Unnamed repository; edit this file 'description' to name the repository.
Merge pull request #22967 from tyler-breisacher-zipline/format
Use format! instead of string
Chayim Refael Friedman 9 days ago
parent d600cff · parent 8d37d31 · commit c09f3f3
-rw-r--r--crates/rust-analyzer/src/command.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/rust-analyzer/src/command.rs b/crates/rust-analyzer/src/command.rs
index bc3fa21c66..a79e78f337 100644
--- a/crates/rust-analyzer/src/command.rs
+++ b/crates/rust-analyzer/src/command.rs
@@ -174,7 +174,7 @@ impl<T: Sized + Send + 'static> CommandHandle<T> {
let mut child = child
.spawn()
.map(JodGroupChild)
- .with_context(|| "Failed to spawn command: {child:?}")?;
+ .with_context(|| format!("Failed to spawn command: {child:?}"))?;
let stdout = child.0.stdout().take().unwrap();
let stderr = child.0.stderr().take().unwrap();