about summary refs log tree commit diff
path: root/tvix/cli/src/known_paths.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tvix/cli/src/known_paths.rs')
-rw-r--r--tvix/cli/src/known_paths.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/tvix/cli/src/known_paths.rs b/tvix/cli/src/known_paths.rs
index 10191c967edc..63372c9caaa9 100644
--- a/tvix/cli/src/known_paths.rs
+++ b/tvix/cli/src/known_paths.rs
@@ -107,8 +107,8 @@ impl KnownPaths {
     }
 
     /// Create a reference scanner from the current set of known paths.
-    pub fn reference_scanner<'a>(&'a self) -> ReferenceScanner<'a> {
-        let candidates: Vec<&'a str> = self.paths.keys().map(|s| s.as_str()).collect();
+    pub fn reference_scanner(&self) -> ReferenceScanner {
+        let candidates = self.paths.keys().map(Clone::clone).collect();
         ReferenceScanner::new(candidates)
     }
 }