Skip to content

Commit 5b5455c

Browse files
committed
refactor(gctx): Drop an allocation when doing templating
1 parent a12c482 commit 5b5455c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cargo/util/context/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -670,7 +670,7 @@ impl GlobalContext {
670670
val: &ConfigRelativePath,
671671
workspace_manifest_path: &Path,
672672
) -> CargoResult<Filesystem> {
673-
let replacements = vec![
673+
let replacements = [
674674
(
675675
"{workspace-root}",
676676
workspace_manifest_path

0 commit comments

Comments
 (0)