Skip to content

Commit 9ebdfc7

Browse files
committed
chore: Fix some small clippy lints in tests
1 parent 823125e commit 9ebdfc7

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lib/wasix/tests/runners.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -44,16 +44,16 @@ mod wasi {
4444
let container = Container::from_bytes(webc).unwrap();
4545
let (rt, tasks) = runtime();
4646
let pkg = BinaryPackage::from_webc(&container, &rt).await.unwrap();
47-
let mut stdout = virtual_fs::ArcFile::new(Box::new(virtual_fs::BufferFile::default()));
47+
let mut stdout = virtual_fs::ArcFile::new(Box::<virtual_fs::BufferFile>::default());
4848

4949
let stdout_2 = stdout.clone();
5050
let handle = std::thread::spawn(move || {
5151
let _guard = tasks.runtime_handle().enter();
5252
WasiRunner::new()
5353
.with_args(["--version"])
54-
.with_stdin(Box::new(virtual_fs::NullFile::default()))
54+
.with_stdin(Box::<virtual_fs::NullFile>::default())
5555
.with_stdout(Box::new(stdout_2) as Box<_>)
56-
.with_stderr(Box::new(virtual_fs::NullFile::default()))
56+
.with_stderr(Box::<virtual_fs::NullFile>::default())
5757
.run_command("wat2wasm", &pkg, Arc::new(rt))
5858
});
5959

@@ -79,9 +79,9 @@ mod wasi {
7979
let _guard = tasks.runtime_handle().enter();
8080
WasiRunner::new()
8181
.with_args(["-c", "import sys; sys.exit(42)"])
82-
.with_stdin(Box::new(virtual_fs::NullFile::default()))
83-
.with_stdout(Box::new(virtual_fs::NullFile::default()))
84-
.with_stderr(Box::new(virtual_fs::NullFile::default()))
82+
.with_stdin(Box::<virtual_fs::NullFile>::default())
83+
.with_stdout(Box::<virtual_fs::NullFile>::default())
84+
.with_stderr(Box::<virtual_fs::NullFile>::default())
8585
.run_command("python", &pkg, Arc::new(rt))
8686
});
8787

0 commit comments

Comments
 (0)