From c000a68a2bcaa4e4aef98c48986637bf9e5ff8f8 Mon Sep 17 00:00:00 2001 From: Bernhard Schuster Date: Sat, 2 Mar 2024 11:03:29 +0100 Subject: [PATCH] fix: avoid race of rustc and rustfmt Fixes #9 --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index f7fb933..489316d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -201,7 +201,7 @@ fn expand_to_file( .arg(format!("--edition={}", edition)) .arg(&dest) .current_dir(cwd) - .spawn()?; + .status()?; } let dest = dest.display().to_string();