From 7ec11ae267b11581256bded383aae87d59c5c672 Mon Sep 17 00:00:00 2001 From: Jan Janssen Date: Sun, 28 May 2023 11:22:22 +0200 Subject: [PATCH] Export FileInfoCreationError Otherwise there is no way to consume the size hint returned by FileInfo::new(). --- uefi/src/proto/media/file/mod.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/uefi/src/proto/media/file/mod.rs b/uefi/src/proto/media/file/mod.rs index 37285ec1b..c6acb792c 100644 --- a/uefi/src/proto/media/file/mod.rs +++ b/uefi/src/proto/media/file/mod.rs @@ -21,7 +21,10 @@ use {alloc::alloc::Global, core::alloc::Allocator}; use {alloc::boxed::Box, uefi::mem::make_boxed}; pub use self::dir::Directory; -pub use self::info::{FileInfo, FileProtocolInfo, FileSystemInfo, FileSystemVolumeLabel, FromUefi}; +pub use self::info::{ + FileInfo, FileInfoCreationError, FileProtocolInfo, FileSystemInfo, FileSystemVolumeLabel, + FromUefi, +}; pub use self::regular::RegularFile; /// Common interface to `FileHandle`, `RegularFile`, and `Directory`.