Skip to content

Commit 3b77451

Browse files
committed
Rust formatting and pr feedbacks
1 parent bd551ee commit 3b77451

3 files changed

Lines changed: 2 additions & 4 deletions

File tree

Gemfile.lock

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ GEM
1212
diff-lcs (1.5.0)
1313
ffi (1.16.3)
1414
ffi (1.16.3-x64-mingw-ucrt)
15-
ffi (1.16.3-x64-mingw32)
1615
get_process_mem (0.2.7)
1716
ffi (~> 1.0)
1817
json (2.7.1)

ext/src/ruby_api/wasi_ctx.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ type RbSelf = Obj<WasiCtx>;
2929

3030
impl WasiCtx {
3131
/// @yard
32-
/// Create a new {WasiCtx} with determinisitic Clock and Random. By default, it has nothing: no stdin/out/err.
32+
/// Create a new deterministic {WasiCtx}. See https://github.com/Shopify/deterministic-wasi-ctx for more details
3333
/// @return [WasiCtx]
3434
pub fn deterministic() -> Self {
3535
Self {

ext/src/ruby_api/wasi_ctx_builder.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,9 +192,8 @@ impl WasiCtxBuilder {
192192
rb_self
193193
}
194194

195-
pub fn build(rb_self: RbSelf) -> Result<WasiCtx, Error> {
195+
pub fn build(ruby: &Ruby, rb_self: RbSelf) -> Result<WasiCtx, Error> {
196196
let mut builder = wasmtime_wasi::WasiCtxBuilder::new();
197-
let ruby = Ruby::get().unwrap();
198197
let inner = rb_self.inner.borrow();
199198

200199
if let Some(stdin) = inner.stdin.as_ref() {

0 commit comments

Comments
 (0)