Skip to content

Commit

Permalink
Run clippy for Windows (zed-industries#15318)
Browse files Browse the repository at this point in the history
This PR fixes running clippy on Windows, as it broke in zed-industries#13223.

We can't run shell scripts on Windows, so we need to use something else.

Release Notes:

- N/A
  • Loading branch information
maxdeviant authored Jul 27, 2024
1 parent e9d0768 commit c0df1e1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 8 additions & 0 deletions crates/remote_server/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![cfg_attr(target_os = "windows", allow(unused, dead_code))]

use fs::RealFs;
use futures::channel::mpsc;
use gpui::Context as _;
Expand All @@ -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()
Expand Down

0 comments on commit c0df1e1

Please sign in to comment.