Skip to content

Commit

Permalink
refactor(source): Hide functions not needed elsewhere
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed Jun 30, 2024
1 parent b89d18b commit 4982455
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cargo/sources/path.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit 4982455

Please sign in to comment.