]> git.proxmox.com Git - cargo.git/commitdiff
Remove needless lifetimes
authorJeremy Stucki <jeremy@myelin.ch>
Thu, 20 Jun 2019 12:03:09 +0000 (14:03 +0200)
committerJeremy Stucki <jeremy@myelin.ch>
Thu, 20 Jun 2019 12:03:09 +0000 (14:03 +0200)
src/cargo/ops/common_for_install_and_uninstall.rs
src/cargo/util/config.rs

index 12e435864d00e09ddd1cbf6752f127ee282bf403..23f4e848586bc6206371b2f8e050937df3e729d8 100644 (file)
@@ -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()
index 44628ee90389414d5a714cbad2f22099dc6376cf..8042a3f79f2fdec9d65147cbfe05303e7fd77e5b 100644 (file)
@@ -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