Skip to content

Commit cd8af3c

Browse files
author
Jonathan Woollett-Light
committed
fix: missing_debug_implementations
Signed-off-by: Jonathan Woollett-Light <[email protected]>
1 parent 074926d commit cd8af3c

File tree

10 files changed

+11
-5
lines changed

10 files changed

+11
-5
lines changed

coverage_config_x86_64.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"coverage_score": 76.9,
2+
"coverage_score": 76.2,
33
"exclude_path": "",
44
"crate_features": "bzimage,elf",
55
"exclude_path": "benches/,loader_gen/"

src/configurator/aarch64/fdt.rs

+1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ impl From<Error> for BootConfiguratorError {
4040
}
4141

4242
/// Boot configurator for device tree.
43+
#[derive(Debug)]
4344
pub struct FdtBootConfigurator {}
4445

4546
impl BootConfigurator for FdtBootConfigurator {

src/configurator/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ pub trait BootConfigurator {
128128
}
129129

130130
/// Boot parameters to be written in guest memory.
131-
#[derive(Clone)]
131+
#[derive(Debug, Clone)]
132132
pub struct BootParams {
133133
/// "Header section", always written in guest memory irrespective of boot protocol.
134134
pub header: Vec<u8>,

src/configurator/x86_64/linux.rs

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ use crate::configurator::{BootConfigurator, BootParams, Error as BootConfigurato
1919
use std::fmt;
2020

2121
/// Boot configurator for the Linux boot protocol.
22+
#[derive(Debug)]
2223
pub struct LinuxBootConfigurator {}
2324

2425
/// Errors specific to the Linux boot protocol configuration.

src/configurator/x86_64/pvh.rs

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ use crate::loader_gen::start_info::{hvm_memmap_table_entry, hvm_modlist_entry, h
2222
use std::fmt;
2323

2424
/// Boot configurator for the PVH boot protocol.
25+
#[derive(Debug)]
2526
pub struct PvhBootConfigurator {}
2627

2728
/// Errors specific to the PVH boot protocol configuration.

src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
//
88
// SPDX-License-Identifier: Apache-2.0 AND BSD-3-Clause
99

10-
#![deny(missing_docs)]
10+
#![deny(missing_docs, missing_debug_implementations)]
1111

1212
//! A Linux kernel image loading crate.
1313
//!
@@ -101,7 +101,7 @@ pub mod cmdline;
101101
pub mod configurator;
102102
pub mod loader;
103103

104-
#[allow(clippy::undocumented_unsafe_blocks)]
104+
#[allow(clippy::undocumented_unsafe_blocks, missing_debug_implementations)]
105105
#[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
106106
mod loader_gen;
107107
#[cfg(any(target_arch = "x86", target_arch = "x86_64"))]

src/loader/aarch64/pe/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ use vm_memory::{Address, ByteValued, Bytes, GuestAddress, GuestMemory, GuestUsiz
2121
use super::super::{Error as KernelLoaderError, KernelLoader, KernelLoaderResult, Result};
2222

2323
/// ARM64 Image (PE) format support
24+
#[derive(Debug)]
2425
pub struct PE;
2526

2627
// SAFETY: The layout of the structure is fixed and can be initialized by

src/loader/x86_64/bzimage/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ impl fmt::Display for Error {
6262
impl std::error::Error for Error {}
6363

6464
/// Big zImage (bzImage) kernel image support.
65+
#[derive(Debug)]
6566
pub struct BzImage;
6667

6768
impl KernelLoader for BzImage {

src/loader/x86_64/elf/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ impl fmt::Display for PvhBootCapability {
133133
}
134134

135135
/// Raw ELF (a.k.a. vmlinux) kernel image support.
136+
#[derive(Debug)]
136137
pub struct Elf;
137138

138139
impl Elf {

0 commit comments

Comments
 (0)