From 498245589841b6765ca28b6db235c4ce627a5a24 Mon Sep 17 00:00:00 2001 From: Ed Page Date: Sat, 29 Jun 2024 21:52:49 -0400 Subject: [PATCH] refactor(source): Hide functions not needed elsewhere --- src/cargo/sources/path.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cargo/sources/path.rs b/src/cargo/sources/path.rs index 3da0bcc1092..313159bcbc8 100644 --- a/src/cargo/sources/path.rs +++ b/src/cargo/sources/path.rs @@ -91,7 +91,7 @@ impl<'gctx> PathSource<'gctx> { } /// Gets the last modified file in a package. - pub fn last_modified_file(&self, pkg: &Package) -> CargoResult<(FileTime, PathBuf)> { + fn last_modified_file(&self, pkg: &Package) -> CargoResult<(FileTime, PathBuf)> { if self.package.is_none() { return Err(internal(format!( "BUG: source `{:?}` was not loaded", @@ -271,7 +271,7 @@ impl<'gctx> RecursivePathSource<'gctx> { } /// Gets the last modified file in a package. - pub fn last_modified_file(&self, pkg: &Package) -> CargoResult<(FileTime, PathBuf)> { + fn last_modified_file(&self, pkg: &Package) -> CargoResult<(FileTime, PathBuf)> { if !self.loaded { return Err(internal(format!( "BUG: source `{:?}` was not loaded",