mirror of
https://github.com/zed-industries/zed.git
synced 2025-02-07 11:11:30 +00:00
Merge pull request #401 from zed-industries/fail-ci-on-warnings
Cause tests to fail on CI when there are warnings
This commit is contained in:
commit
3ef3f3098c
2 changed files with 4 additions and 1 deletions
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
|
@ -19,6 +19,8 @@ jobs:
|
||||||
tests:
|
tests:
|
||||||
name: Run tests
|
name: Run tests
|
||||||
runs-on: self-hosted
|
runs-on: self-hosted
|
||||||
|
env:
|
||||||
|
RUSTFLAGS: -D warnings
|
||||||
steps:
|
steps:
|
||||||
- name: Install Rust
|
- name: Install Rust
|
||||||
uses: actions-rs/toolchain@v1
|
uses: actions-rs/toolchain@v1
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
use anyhow::{anyhow, Result};
|
use anyhow::{anyhow, Result};
|
||||||
use fsevent::EventStream;
|
use fsevent::EventStream;
|
||||||
use futures::{Stream, StreamExt};
|
use futures::{Stream, StreamExt};
|
||||||
use postage::prelude::Sink as _;
|
|
||||||
use smol::io::{AsyncReadExt, AsyncWriteExt};
|
use smol::io::{AsyncReadExt, AsyncWriteExt};
|
||||||
use std::{
|
use std::{
|
||||||
io,
|
io,
|
||||||
|
@ -164,6 +163,8 @@ impl FakeFsState {
|
||||||
}
|
}
|
||||||
|
|
||||||
async fn emit_event(&mut self, paths: &[&Path]) {
|
async fn emit_event(&mut self, paths: &[&Path]) {
|
||||||
|
use postage::prelude::Sink as _;
|
||||||
|
|
||||||
let events = paths
|
let events = paths
|
||||||
.iter()
|
.iter()
|
||||||
.map(|path| fsevent::Event {
|
.map(|path| fsevent::Event {
|
||||||
|
|
Loading…
Reference in a new issue