Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Properly require clippy installation, try to shuffle clippy arguments

Kirill Bulatova5dd2535f140
diff --git a/.github/actions/check_style/action.yml b/.github/actions/check_style/action.yml
index 8312eeb500f..367665dd949 100644
--- a/.github/actions/check_style/action.yml
+++ b/.github/actions/check_style/action.yml
@@ -2,23 +2,22 @@ name: "Check formatting"
description: "Checks code formatting use cargo fmt"
runs:
- using: "composite"
- steps:
- - name: Install Rust
- shell: bash -euxo pipefail {0}
- run: |
- rustup set profile minimal
- rustup update stable
- rustup component add clippy
+ using: "composite"
+ steps:
+ - name: Install Rust
+ shell: bash -euxo pipefail {0}
+ run: |
+ rustup set profile minimal
+ rustup update stable
- - name: cargo fmt
- shell: bash -euxo pipefail {0}
- run: cargo fmt --all -- --check
+ - name: cargo fmt
+ shell: bash -euxo pipefail {0}
+ run: cargo fmt --all -- --check
- - name: cargo clippy
- shell: bash -euxo pipefail {0}
- # clippy.toml is not currently supporting specifying allowed lints
- # so specify those here, and disable the rest until Zed's workspace
- # will have more fixes & suppression for the standard lint set
- run: |
- CARGO_LOG=debug cargo -vvv clippy --workspace --all-features -- -A clippy::all -D clippy::dbg_macro -D clippy::todo
+ - name: cargo clippy
+ shell: bash -euxo pipefail {0}
+ # clippy.toml is not currently supporting specifying allowed lints
+ # so specify those here, and disable the rest until Zed's workspace
+ # will have more fixes & suppression for the standard lint set
+ run: |
+ cargo clippy --workspace --all-features --all-targets -- -A clippy::all -D clippy::dbg_macro -D clippy::todo
diff --git a/crates/editor/src/editor_tests.rs b/crates/editor/src/editor_tests.rs
index 520c3714d3d..00e33a2729d 100644
--- a/crates/editor/src/editor_tests.rs
+++ b/crates/editor/src/editor_tests.rs
@@ -8242,6 +8242,7 @@ pub(crate) fn update_test_project_settings(
}
pub(crate) fn init_test(cx: &mut TestAppContext, f: fn(&mut AllLanguageSettingsContent)) {
+ dbg!("(???????????");
_ = cx.update(|cx| {
let store = SettingsStore::test(cx);
cx.set_global(store);
diff --git a/rust-toolchain.toml b/rust-toolchain.toml
index 79d2d20a7af..e04ebff9ced 100644
--- a/rust-toolchain.toml
+++ b/rust-toolchain.toml
@@ -1,4 +1,4 @@
[toolchain]
channel = "1.75"
-components = [ "rustfmt" ]
+components = [ "rustfmt", "clippy" ]
targets = [ "x86_64-apple-darwin", "aarch64-apple-darwin", "wasm32-wasi" ]