Skip to content

Commit

Permalink
Replace some instances of pub with pub(crate)
Browse files Browse the repository at this point in the history
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)`.
  • Loading branch information
tgross35 committed Jan 30, 2025
1 parent 35b5ed1 commit 530eaf1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion library/std/src/sys/pal/uefi/process.rs
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ mod uefi_command_internal {
}
}

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
Expand Down
2 changes: 1 addition & 1 deletion library/std/src/sys/pal/uefi/time.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ pub(crate) mod system_time_internal {

// 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);

Expand Down

0 comments on commit 530eaf1

Please sign in to comment.