From 38d87ad2fde50e47add24c992fbf20750a863332 Mon Sep 17 00:00:00 2001 From: Raito Bezarius Date: Wed, 8 Nov 2023 20:14:53 +0100 Subject: [PATCH] uefi(filesystem): make `open` public in `uefi::fs::FileSystem` `open` might a bit too low-level, but it is a powerful API to bridge between high-level structures and low-level structures, it would be a shame to force end-users to reinvent it. --- uefi/src/fs/file_system/fs.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uefi/src/fs/file_system/fs.rs b/uefi/src/fs/file_system/fs.rs index d08e1b892..9372d520e 100644 --- a/uefi/src/fs/file_system/fs.rs +++ b/uefi/src/fs/file_system/fs.rs @@ -404,7 +404,7 @@ impl<'a> FileSystem<'a> { /// May create a file if [`UefiFileMode::CreateReadWrite`] is set. May /// create a directory if [`UefiFileMode::CreateReadWrite`] and `create_dir` /// is set. The parameter `create_dir` is ignored otherwise. - fn open( + pub fn open( &mut self, path: &Path, mode: UefiFileMode,