Skip to content

Commit 3e3950d

Browse files
committed
multiboot2: fix some warnings and test failures without builder feature
1 parent 881e4c9 commit 3e3950d

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

multiboot2/src/efi.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ impl StructAsBytes for EFIImageHandle64 {
136136
}
137137
}
138138

139-
#[cfg(test)]
139+
#[cfg(all(test, feature = "builder"))]
140140
mod tests {
141141
use super::{EFIImageHandle32, EFIImageHandle64, EFISdt32, EFISdt64};
142142

multiboot2/src/image_load_addr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ impl StructAsBytes for ImageLoadPhysAddr {
3838
}
3939
}
4040

41-
#[cfg(test)]
41+
#[cfg(all(test, feature = "builder"))]
4242
mod tests {
4343
use super::ImageLoadPhysAddr;
4444

multiboot2/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ struct BootInformationInner {
206206
}
207207

208208
impl BootInformationInner {
209+
#[cfg(feature = "builder")]
209210
fn new(total_size: u32) -> Self {
210211
Self {
211212
total_size,

0 commit comments

Comments
 (0)