From 1ebd7782b8df11aed5715fc573f87dd33ca13130 Mon Sep 17 00:00:00 2001 From: kamal Date: Mon, 20 Jan 2025 22:18:26 +0530 Subject: [PATCH] fix(cargo_new): format members list of workspace in Cargo.toml --- src/cargo/ops/cargo_new.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cargo/ops/cargo_new.rs b/src/cargo/ops/cargo_new.rs index 88d2d6bf162..4c2d6e162c7 100644 --- a/src/cargo/ops/cargo_new.rs +++ b/src/cargo/ops/cargo_new.rs @@ -999,6 +999,7 @@ fn update_manifest_with_new_member( if was_sorted { members.sort_by(|lhs, rhs| lhs.as_str().cmp(&rhs.as_str())); } + members.fmt(); } else { let mut array = Array::new(); array.push(display_path);