summaryrefslogtreecommitdiff
path: root/rust/src/rc.rs
diff options
context:
space:
mode:
authorJosh Ferrell <josh@vector35.com>2025-09-29 14:53:05 -0400
committerJosh Ferrell <josh@vector35.com>2025-09-29 15:08:06 -0400
commitfd5a89e174e01b0adb089dcf8f6da36cf5008443 (patch)
tree25f66fa722f8759a817a053580f2461309ac448e /rust/src/rc.rs
parent4870c90e6fbf31898c57db04f97c69f647157fd5 (diff)
Fix rust warnings about lifetimes introduced by 1.89.0
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,