summaryrefslogtreecommitdiff
path: root/runtime/worker.rs
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/worker.rs')
-rw-r--r--runtime/worker.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/runtime/worker.rs b/runtime/worker.rs
index a0e63afad..adb525c4c 100644
--- a/runtime/worker.rs
+++ b/runtime/worker.rs
@@ -152,13 +152,13 @@ impl MainWorker {
let t = &mut op_state.resource_table;
let (stdin, stdout, stderr) = ops::io::get_stdio();
if let Some(stream) = stdin {
- t.add("stdin", Box::new(stream));
+ t.add(stream);
}
if let Some(stream) = stdout {
- t.add("stdout", Box::new(stream));
+ t.add(stream);
}
if let Some(stream) = stderr {
- t.add("stderr", Box::new(stream));
+ t.add(stream);
}
}