Skip to content

Commit 92427df

Browse files
committed
Auto merge of #7047 - jeremystucki:needless-lifetimes, r=Eh2406
Remove needless lifetimes
2 parents 2ee292f + e97fef0 commit 92427df

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/cargo/ops/common_for_install_and_uninstall.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@ pub fn resolve_root(flag: Option<&str>, config: &Config) -> CargoResult<Filesyst
545545
}
546546

547547
/// Determines the `PathSource` from a `SourceId`.
548-
pub fn path_source<'a>(source_id: SourceId, config: &'a Config) -> CargoResult<PathSource<'a>> {
548+
pub fn path_source(source_id: SourceId, config: &Config) -> CargoResult<PathSource<'_>> {
549549
let path = source_id
550550
.url()
551551
.to_file_path()

src/cargo/util/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -872,7 +872,7 @@ impl Config {
872872
/// This lock is global per-process and can be acquired recursively. An RAII
873873
/// structure is returned to release the lock, and if this process
874874
/// abnormally terminates the lock is also released.
875-
pub fn acquire_package_cache_lock<'a>(&'a self) -> CargoResult<PackageCacheLock<'a>> {
875+
pub fn acquire_package_cache_lock(&self) -> CargoResult<PackageCacheLock<'_>> {
876876
let mut slot = self.package_cache_lock.borrow_mut();
877877
match *slot {
878878
// We've already acquired the lock in this process, so simply bump

0 commit comments

Comments
 (0)