diff --git a/src/cargo/ops/common_for_install_and_uninstall.rs b/src/cargo/ops/common_for_install_and_uninstall.rs index 12e435864d0..498caee3e62 100644 --- a/src/cargo/ops/common_for_install_and_uninstall.rs +++ b/src/cargo/ops/common_for_install_and_uninstall.rs @@ -545,7 +545,7 @@ pub fn resolve_root(flag: Option<&str>, config: &Config) -> CargoResult(source_id: SourceId, config: &'a Config) -> CargoResult> { +pub fn path_source(source_id: SourceId, config: &Config) -> CargoResult> { let path = source_id .url() .to_file_path() diff --git a/src/cargo/util/config.rs b/src/cargo/util/config.rs index 44628ee9038..22d5a541d61 100644 --- a/src/cargo/util/config.rs +++ b/src/cargo/util/config.rs @@ -872,7 +872,7 @@ impl Config { /// This lock is global per-process and can be acquired recursively. An RAII /// structure is returned to release the lock, and if this process /// abnormally terminates the lock is also released. - pub fn acquire_package_cache_lock<'a>(&'a self) -> CargoResult> { + pub fn acquire_package_cache_lock(&self) -> CargoResult> { let mut slot = self.package_cache_lock.borrow_mut(); match *slot { // We've already acquired the lock in this process, so simply bump