Skip to content

Commit d2e8ee1

Browse files
andreeaflorescujiangliu
authored andcommitted
derive Debug for DeviceFd
Without this derive it is hard to write negative tests because we cannot do unwrap_err. Signed-off-by: Andreea Florescu <fandree@amazon.com>
1 parent ed0bf1b commit d2e8ee1

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

coverage_config_x86_64.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"coverage_score": 88.0,
2+
"coverage_score": 87.7,
33
"exclude_path": "",
44
"crate_features": ""
55
}

src/ioctls/device.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ use vmm_sys_util::errno;
1111
use vmm_sys_util::ioctl::{ioctl_with_mut_ref, ioctl_with_ref};
1212

1313
/// Wrapper over the file descriptor obtained when creating an emulated device in the kernel.
14+
#[derive(Debug)]
1415
pub struct DeviceFd {
1516
fd: File,
1617
}

0 commit comments

Comments
 (0)