Skip to content

Commit f6f1ef3

Browse files
committed
cleanup warnings
1 parent 2a97e5f commit f6f1ef3

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/api/annotationstore.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,9 @@ impl AnnotationStore {
108108
/// Returns an iterator over all text resources ([`TextResource`] instances) in the store.
109109
/// Items are returned as a fat pointer [`ResultItem<TextResource>`]),
110110
/// which exposes the high-level API.
111-
pub fn resources<'a>(&'a self) -> ResultIter<impl Iterator<Item = ResultItem<TextResource>>> {
111+
pub fn resources<'a>(
112+
&'a self,
113+
) -> ResultIter<impl Iterator<Item = ResultItem<'a, TextResource>>> {
112114
ResultIter::new_sorted(
113115
self.iter()
114116
.map(|item: &TextResource| item.as_resultitem(self, self)),
@@ -121,7 +123,7 @@ impl AnnotationStore {
121123
/// Unlike [`resources()`], this will not return datasets from substores.
122124
pub fn resources_no_substores<'a>(
123125
&'a self,
124-
) -> ResultIter<impl Iterator<Item = ResultItem<TextResource>>> {
126+
) -> ResultIter<impl Iterator<Item = ResultItem<'a, TextResource>>> {
125127
ResultIter::new_sorted(
126128
self.iter()
127129
.map(|item: &TextResource| item.as_resultitem(self, self))
@@ -134,7 +136,7 @@ impl AnnotationStore {
134136
/// which exposes the high-level API.
135137
pub fn datasets<'a>(
136138
&'a self,
137-
) -> ResultIter<impl Iterator<Item = ResultItem<AnnotationDataSet>>> {
139+
) -> ResultIter<impl Iterator<Item = ResultItem<'a, AnnotationDataSet>>> {
138140
ResultIter::new_sorted(
139141
self.iter()
140142
.map(|item: &AnnotationDataSet| item.as_resultitem(self, self)),
@@ -147,7 +149,7 @@ impl AnnotationStore {
147149
/// Unlike [`datasets()`], this will not return datasets from substores.
148150
pub fn datasets_no_substores<'a>(
149151
&'a self,
150-
) -> ResultIter<impl Iterator<Item = ResultItem<AnnotationDataSet>>> {
152+
) -> ResultIter<impl Iterator<Item = ResultItem<'a, AnnotationDataSet>>> {
151153
ResultIter::new_sorted(
152154
self.iter()
153155
.map(|item: &AnnotationDataSet| item.as_resultitem(self, self))

0 commit comments

Comments
 (0)