mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03: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:
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user