Skip to content

Commit 715a8a1

Browse files
authored
Update loader.rs
1 parent e3df6c6 commit 715a8a1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

vm/src/elf/loader.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@
4646
use crate::{elf::parser, error::VMError, memory::MemorySegmentImage};
4747

4848
use elf::{endian::LittleEndian, ElfBytes};
49-
use std::fs::{self, File};
49+
use std::fs;
50+
#[cfg(test)]
51+
use std::fs::File;
5052
use std::path::Path;
5153

5254
use super::{error::ParserError, parser::ParsedElfData};

0 commit comments

Comments
 (0)