Replace some instances of pub with pub(crate)

The recent fixes to private dependencies exposed some cases in the UEFI
module where private dependencies are exposed in a public interface.
These do not need to be crate-public, so change them to `pub(crate)`.
This commit is contained in:
Trevor Gross
2025-01-30 02:52:39 +00:00
parent aca5b5dd52
commit 93925809eb
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -388,7 +388,7 @@ pub fn load_image(p: &OsStr) -> io::Result<Self> {
}
}
pub fn start_image(&mut self) -> io::Result<r_efi::efi::Status> {
pub(crate) fn start_image(&mut self) -> io::Result<r_efi::efi::Status> {
self.update_st_crc32()?;
// Use our system table instead of the default one
+1 -1
View File
@@ -84,7 +84,7 @@ pub fn now() -> Option<SystemTime> {
// This algorithm is based on the one described in the post
// https://blog.reverberate.org/2020/05/12/optimizing-date-algorithms.html
pub const fn uefi_time_to_duration(t: r_efi::system::Time) -> Duration {
pub(crate) const fn uefi_time_to_duration(t: r_efi::system::Time) -> Duration {
assert!(t.month <= 12);
assert!(t.month != 0);