Skip to content

Commit

Permalink
c-api: fix use of wasi_cap_std_sync => wasi_common::sync
Browse files Browse the repository at this point in the history
  • Loading branch information
pchickey committed Feb 9, 2024
1 parent 882fac2 commit 0cac87a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/c-api/src/wasi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ impl wasi_config_t {
}
WasiConfigReadPipe::File(file) => {
let file = cap_std::fs::File::from_std(file);
let file = wasi_cap_std_sync::file::File::from_cap_std(file);
let file = wasi_common::sync::file::File::from_cap_std(file);
builder.stdin(Box::new(file));
}
WasiConfigReadPipe::Bytes(binary) => {
Expand All @@ -115,7 +115,7 @@ impl wasi_config_t {
}
WasiConfigWritePipe::File(file) => {
let file = cap_std::fs::File::from_std(file);
let file = wasi_cap_std_sync::file::File::from_cap_std(file);
let file = wasi_common::sync::file::File::from_cap_std(file);
builder.stdout(Box::new(file));
}
};
Expand All @@ -126,7 +126,7 @@ impl wasi_config_t {
}
WasiConfigWritePipe::File(file) => {
let file = cap_std::fs::File::from_std(file);
let file = wasi_cap_std_sync::file::File::from_cap_std(file);
let file = wasi_common::sync::file::File::from_cap_std(file);
builder.stderr(Box::new(file));
}
};
Expand Down

0 comments on commit 0cac87a

Please sign in to comment.