Skip to content

Commit ce58ead

Browse files
committed
refactor(gctx): Prefer Path to PathBuf
1 parent 30c01da commit ce58ead

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/cargo/util/context/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,7 @@ impl GlobalContext {
654654
/// The directory to use for intermediate build artifacts.
655655
///
656656
/// Callers should prefer [`Workspace::build_dir`] instead.
657-
pub fn build_dir(&self, workspace_manifest_path: &PathBuf) -> CargoResult<Option<Filesystem>> {
657+
pub fn build_dir(&self, workspace_manifest_path: &Path) -> CargoResult<Option<Filesystem>> {
658658
let Some(val) = &self.build_config()?.build_dir else {
659659
return Ok(None);
660660
};
@@ -668,7 +668,7 @@ impl GlobalContext {
668668
pub fn custom_build_dir(
669669
&self,
670670
val: &ConfigRelativePath,
671-
workspace_manifest_path: &PathBuf,
671+
workspace_manifest_path: &Path,
672672
) -> CargoResult<Filesystem> {
673673
let replacements = vec![
674674
(

0 commit comments

Comments
 (0)