summaryrefslogtreecommitdiff
path: root/dhall_syntax/src/core/context.rs
diff options
context:
space:
mode:
Diffstat (limited to 'dhall_syntax/src/core/context.rs')
-rw-r--r--dhall_syntax/src/core/context.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/dhall_syntax/src/core/context.rs b/dhall_syntax/src/core/context.rs
index 55bfff5..eeec121 100644
--- a/dhall_syntax/src/core/context.rs
+++ b/dhall_syntax/src/core/context.rs
@@ -56,13 +56,13 @@ impl<K: Hash + Eq + Clone, T> Context<K, T> {
self.0.get(k).into_iter().flat_map(|v| v.iter())
}
- pub fn iter<'a>(&'a self) -> impl Iterator<Item = (&K, &T)> {
+ pub fn iter(&self) -> impl Iterator<Item = (&K, &T)> {
self.0
.iter()
.flat_map(|(k, vs)| vs.iter().map(move |v| (k, v)))
}
- pub fn iter_keys<'a>(&'a self) -> impl Iterator<Item = (&K, &Vec<T>)> {
+ pub fn iter_keys(&self) -> impl Iterator<Item = (&K, &Vec<T>)> {
self.0.iter()
}
}