Skip to content

Commit a47d161

Browse files
tgross35gitbot
authored and
gitbot
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 6edaafa commit a47d161

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: std/src/sys/pal/uefi/process.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ mod uefi_command_internal {
388388
}
389389
}
390390

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

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

Diff for: 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)