From 2f5abe2b5a79875bcc847930fd910cf6e5b8bfbf Mon Sep 17 00:00:00 2001 From: Marshall Bowers Date: Wed, 5 Feb 2025 14:30:06 -0500 Subject: [PATCH] panel: Remove unneeded `lib.name` field in `Cargo.toml` (#24301) This PR removes the `name` field from under `lib` in the `Cargo.toml` file for the `panel` crate, as it isn't necessary. Also removed it from `script/new-crate`. Release Notes: - N/A --- crates/panel/Cargo.toml | 4 ---- script/new-crate | 7 +++---- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/crates/panel/Cargo.toml b/crates/panel/Cargo.toml index 03db05bb0bff35..4e7c81804d32b3 100644 --- a/crates/panel/Cargo.toml +++ b/crates/panel/Cargo.toml @@ -9,13 +9,9 @@ license = "GPL-3.0-or-later" workspace = true [lib] -name = "panel" path = "src/panel.rs" [dependencies] gpui.workspace = true ui.workspace = true workspace.workspace = true - -[features] -default = [] diff --git a/script/new-crate b/script/new-crate index 459384d7aea44b..099a9870b4ecfa 100755 --- a/script/new-crate +++ b/script/new-crate @@ -53,9 +53,11 @@ license = "$LICENSE_MODE" workspace = true [lib] -name = "$CRATE_NAME" path = "src/$CRATE_NAME.rs" +[features] +default = [] + [dependencies] anyhow.workspace = true gpui.workspace = true @@ -67,9 +69,6 @@ util.workspace = true # client.workspace = true # project.workspace = true # settings.workspace = true - -[features] -default = [] EOF )