Skip to content

Commit

Permalink
Remove needless lifetimes
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremystucki committed Jun 20, 2019
1 parent 2ee292f commit 90e6bc6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/cargo/ops/common_for_install_and_uninstall.rs
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ pub fn resolve_root(flag: Option<&str>, config: &Config) -> CargoResult<Filesyst
}

/// Determines the `PathSource` from a `SourceId`.
pub fn path_source<'a>(source_id: SourceId, config: &'a Config) -> CargoResult<PathSource<'a>> {
pub fn path_source(source_id: SourceId, config: &Config) -> CargoResult<PathSource> {
let path = source_id
.url()
.to_file_path()
Expand Down
2 changes: 1 addition & 1 deletion src/cargo/util/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<PackageCacheLock<'a>> {
pub fn acquire_package_cache_lock(&self) -> CargoResult<PackageCacheLock> {
let mut slot = self.package_cache_lock.borrow_mut();
match *slot {
// We've already acquired the lock in this process, so simply bump
Expand Down

0 comments on commit 90e6bc6

Please sign in to comment.