mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-04 19:29:07 +00:00
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:
parent
aca5b5dd52
commit
93925809eb
@ -388,7 +388,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()?;
|
self.update_st_crc32()?;
|
||||||
|
|
||||||
// Use our system table instead of the default one
|
// Use our system table instead of the default one
|
||||||
|
@ -84,7 +84,7 @@ pub(crate) mod system_time_internal {
|
|||||||
|
|
||||||
// This algorithm is based on the one described in the post
|
// This algorithm is based on the one described in the post
|
||||||
// https://blog.reverberate.org/2020/05/12/optimizing-date-algorithms.html
|
// 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 <= 12);
|
||||||
assert!(t.month != 0);
|
assert!(t.month != 0);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user