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.

Run clippy for Windows (#15318)

Marshall Bowersc0df1e1846b3
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 9928782fd52..889b9a053c2 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -147,7 +147,8 @@ jobs:
save-if: ${{ github.ref == 'refs/heads/main' }}
- name: cargo clippy
- run: ./script/clippy
+ # Windows can't run shell scripts, so we need to use `cargo xtask`.
+ run: cargo xtask clippy
- name: Build Zed
run: cargo build -p zed
diff --git a/crates/remote_server/src/main.rs b/crates/remote_server/src/main.rs
index 6b6585624fc..112e7cbeaf4 100644
--- a/crates/remote_server/src/main.rs
+++ b/crates/remote_server/src/main.rs
@@ -1,3 +1,5 @@
+#![cfg_attr(target_os = "windows", allow(unused, dead_code))]
+
use fs::RealFs;
use futures::channel::mpsc;
use gpui::Context as _;
@@ -15,6 +17,12 @@ use std::{
sync::Arc,
};
+#[cfg(windows)]
+fn main() {
+ unimplemented!()
+}
+
+#[cfg(not(windows))]
fn main() {
env::set_var("RUST_BACKTRACE", "1");
env_logger::builder()