fix warnings
This commit is contained in:
1
.github/workflows/main.yml
vendored
1
.github/workflows/main.yml
vendored
@@ -208,6 +208,7 @@ jobs:
|
|||||||
name: Test
|
name: Test
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
strategy:
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
build: [stable, beta, nightly, windows, macos]
|
build: [stable, beta, nightly, windows, macos]
|
||||||
include:
|
include:
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ use anyhow::{Context, Error};
|
|||||||
use wasi_common::{
|
use wasi_common::{
|
||||||
file::{FdFlags, OFlags},
|
file::{FdFlags, OFlags},
|
||||||
sched::{Poll, RwEventFlags, SubscriptionResult, Userdata},
|
sched::{Poll, RwEventFlags, SubscriptionResult, Userdata},
|
||||||
WasiDir, WasiFile,
|
WasiDir,
|
||||||
};
|
};
|
||||||
use wasi_tokio::{sched::poll_oneoff, Dir};
|
use wasi_tokio::{sched::poll_oneoff, Dir};
|
||||||
|
|
||||||
@@ -13,7 +13,7 @@ async fn empty_file_readable() -> Result<(), Error> {
|
|||||||
let d = workspace.open_dir("d").context("open dir")?;
|
let d = workspace.open_dir("d").context("open dir")?;
|
||||||
let d = Dir::from_cap_std(d);
|
let d = Dir::from_cap_std(d);
|
||||||
|
|
||||||
let mut f = d
|
let f = d
|
||||||
.open_file(false, "f", OFlags::CREATE, false, true, FdFlags::empty())
|
.open_file(false, "f", OFlags::CREATE, false, true, FdFlags::empty())
|
||||||
.await
|
.await
|
||||||
.context("create writable file f")?;
|
.context("create writable file f")?;
|
||||||
|
|||||||
Reference in New Issue
Block a user