Run clippy for Windows (#15318)
This PR fixes running clippy on Windows, as it broke in #13223. We can't run shell scripts on Windows, so we need to use something else. Release Notes: - N/A
This commit is contained in:
parent
e9d0768e3c
commit
c0df1e1846
2 changed files with 10 additions and 1 deletions
3
.github/workflows/ci.yml
vendored
3
.github/workflows/ci.yml
vendored
|
@ -147,7 +147,8 @@ jobs:
|
||||||
save-if: ${{ github.ref == 'refs/heads/main' }}
|
save-if: ${{ github.ref == 'refs/heads/main' }}
|
||||||
|
|
||||||
- name: cargo clippy
|
- 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
|
- name: Build Zed
|
||||||
run: cargo build -p zed
|
run: cargo build -p zed
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
#![cfg_attr(target_os = "windows", allow(unused, dead_code))]
|
||||||
|
|
||||||
use fs::RealFs;
|
use fs::RealFs;
|
||||||
use futures::channel::mpsc;
|
use futures::channel::mpsc;
|
||||||
use gpui::Context as _;
|
use gpui::Context as _;
|
||||||
|
@ -15,6 +17,12 @@ use std::{
|
||||||
sync::Arc,
|
sync::Arc,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#[cfg(windows)]
|
||||||
|
fn main() {
|
||||||
|
unimplemented!()
|
||||||
|
}
|
||||||
|
|
||||||
|
#[cfg(not(windows))]
|
||||||
fn main() {
|
fn main() {
|
||||||
env::set_var("RUST_BACKTRACE", "1");
|
env::set_var("RUST_BACKTRACE", "1");
|
||||||
env_logger::builder()
|
env_logger::builder()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue