summaryrefslogtreecommitdiff
path: root/rust/src/rc.rs
diff options
context:
space:
mode:
Diffstat (limited to 'rust/src/rc.rs')
-rw-r--r--rust/src/rc.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/rust/src/rc.rs b/rust/src/rc.rs
index f6abb036..71d72ceb 100644
--- a/rust/src/rc.rs
+++ b/rust/src/rc.rs
@@ -258,7 +258,7 @@ impl<P: CoreArrayProviderInner> Array<P> {
}
}
- pub fn iter(&self) -> ArrayIter<P> {
+ pub fn iter(&self) -> ArrayIter<'_, P> {
ArrayIter {
it: unsafe { slice::from_raw_parts(self.contents, self.count).iter() },
context: &self.context,
@@ -347,7 +347,7 @@ impl<P: CoreArrayProviderInner> ArrayGuard<P> {
}
}
- pub fn iter(&self) -> ArrayIter<P> {
+ pub fn iter(&self) -> ArrayIter<'_, P> {
ArrayIter {
it: unsafe { slice::from_raw_parts(self.contents, self.count).iter() },
context: &self.context,