Skip to content

Commit 1db60e8

Browse files
committed
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)`.
1 parent 51af908 commit 1db60e8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

library/std/src/sys/pal/uefi/process.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ mod uefi_command_internal {
358358
}
359359
}
360360

361-
pub fn start_image(&mut self) -> io::Result<r_efi::efi::Status> {
361+
pub(crate) fn start_image(&mut self) -> io::Result<r_efi::efi::Status> {
362362
self.update_st_crc32()?;
363363

364364
// Use our system table instead of the default one

library/std/src/sys/pal/uefi/time.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ pub(crate) mod system_time_internal {
8484

8585
// This algorithm is based on the one described in the post
8686
// https://blog.reverberate.org/2020/05/12/optimizing-date-algorithms.html
87-
pub const fn uefi_time_to_duration(t: r_efi::system::Time) -> Duration {
87+
pub(crate) const fn uefi_time_to_duration(t: r_efi::system::Time) -> Duration {
8888
assert!(t.month <= 12);
8989
assert!(t.month != 0);
9090

0 commit comments

Comments
 (0)