Skip to content

Commit 02ecbb2

Browse files
committed
Fix unused import warning
1 parent 5d153e3 commit 02ecbb2

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

tests/runner/src/lib.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use bootloader::BootConfig;
22
use bootloader::DiskImageBuilder;
3-
use std::{io::Read, path::Path, process::Command};
3+
use std::path::Path;
44

55
pub fn run_test_kernel(kernel_binary_path: &str) {
66
run_test_kernel_internal(kernel_binary_path, None, None)
@@ -92,6 +92,11 @@ fn run_qemu<'a, A>(args: A)
9292
where
9393
A: IntoIterator<Item = &'a str>,
9494
{
95+
use std::{
96+
io::Read,
97+
process::{Command, Stdio},
98+
};
99+
95100
const QEMU_ARGS: &[&str] = &[
96101
"-device",
97102
"isa-debug-exit,iobase=0xf4,iosize=0x04",
@@ -104,8 +109,6 @@ where
104109

105110
const SEPARATOR: &str = "\n____________________________________\n";
106111

107-
use std::process::Stdio;
108-
109112
let mut run_cmd = Command::new("qemu-system-x86_64");
110113
run_cmd.args(args);
111114
run_cmd.args(QEMU_ARGS);

0 commit comments

Comments
 (0)