From 55dda0e6afee4e968aa3f90d9c157825036a2c98 Mon Sep 17 00:00:00 2001 From: Kirill Bulatov Date: Mon, 26 Aug 2024 02:24:08 +0300 Subject: [PATCH] A set of small fixes (#16849) * Linux Clippy lints fixed * Zed local tasks are now simpler to rerun * Zed's `release-fast` build profile keeps the debug info so it's possible to properly debug things without altering the sources Release Notes: - N/A --- .zed/tasks.json | 8 ++++++-- Cargo.toml | 1 + crates/assistant/src/slash_command/file_command.rs | 4 ---- crates/gpui/src/platform/blade/blade_renderer.rs | 1 + 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.zed/tasks.json b/.zed/tasks.json index 800588a96b..b6a9d9f4cd 100644 --- a/.zed/tasks.json +++ b/.zed/tasks.json @@ -2,11 +2,15 @@ { "label": "clippy", "command": "./script/clippy", - "args": [] + "args": [], + "allow_concurrent_runs": true, + "use_new_terminal": false }, { "label": "cargo run --profile release-fast", "command": "cargo", - "args": ["run", "--profile", "release-fast"] + "args": ["run", "--profile", "release-fast"], + "allow_concurrent_runs": true, + "use_new_terminal": false } ] diff --git a/Cargo.toml b/Cargo.toml index 9b18b12ee8..400e43159c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -545,6 +545,7 @@ zed = { codegen-units = 16 } [profile.release-fast] inherits = "release" +debug = "full" lto = false codegen-units = 16 diff --git a/crates/assistant/src/slash_command/file_command.rs b/crates/assistant/src/slash_command/file_command.rs index 244dee2107..c253e5b91c 100644 --- a/crates/assistant/src/slash_command/file_command.rs +++ b/crates/assistant/src/slash_command/file_command.rs @@ -512,10 +512,6 @@ mod custom_path_matcher { }) } - pub fn sources(&self) -> &[String] { - &self.sources - } - pub fn is_match>(&self, other: P) -> bool { let other_path = other.as_ref(); self.sources diff --git a/crates/gpui/src/platform/blade/blade_renderer.rs b/crates/gpui/src/platform/blade/blade_renderer.rs index afb065895d..147966eb38 100644 --- a/crates/gpui/src/platform/blade/blade_renderer.rs +++ b/crates/gpui/src/platform/blade/blade_renderer.rs @@ -774,6 +774,7 @@ impl BladeRenderer { } /// Required to compile on macOS, but not currently supported. + #[cfg_attr(any(target_os = "linux", target_os = "windows"), allow(dead_code))] pub fn fps(&self) -> f32 { 0.0 }