Skip to content

Commit 9faaf46

Browse files
committed
build: Allow unread fields in structs
Signed-off-by: Akira Moroo <retrage01@gmail.com>
1 parent 6d37572 commit 9faaf46

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/efi/file.rs

+1
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ pub extern "win64" fn set_position(_: *mut FileProtocol, _: u64) -> Status {
136136
Status::UNSUPPORTED
137137
}
138138

139+
#[allow(unused)]
139140
struct FileInfo {
140141
size: u64,
141142
file_size: u64,

src/fat.rs

+1
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ pub struct Filesystem<'a> {
104104
first_fat_sector: u32,
105105
first_data_sector: u32,
106106
data_sector_count: u32,
107+
#[allow(unused)]
107108
data_cluster_count: u32,
108109
root_cluster: u32, // FAT32 only
109110
}

0 commit comments

Comments
 (0)