diff -r 8a6e6b62b9a3 -r ebdef6283798 rust/hg-core/src/repo.rs --- a/rust/hg-core/src/repo.rs Mon Jun 07 17:10:35 2021 -0400 +++ b/rust/hg-core/src/repo.rs Sun Apr 11 00:50:10 2021 +0530 @@ -53,7 +53,7 @@ /// Having two methods would just move that `if` to almost all callers. pub fn find( config: &Config, - explicit_path: Option<&Path>, + explicit_path: Option, ) -> Result { if let Some(root) = explicit_path { if root.join(".hg").is_dir() {