Skip to content

Commit 68d352f

Browse files
committed
fixup: lifetime fix
1 parent 8cc9bd6 commit 68d352f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/api/query.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1115,12 +1115,12 @@ impl<'a> Query<'a> {
11151115
}
11161116

11171117
/// Iterates over all constraints in the Query
1118-
pub fn constraints(&'a self) -> std::slice::Iter<'a, Constraint<'a>> {
1118+
pub fn constraints<'s>(&'s self) -> std::slice::Iter<'s, Constraint<'a>> {
11191119
self.constraints.iter()
11201120
}
11211121

11221122
/// Returns all attributes for this query
1123-
pub fn attributes(&'a self) -> std::slice::Iter<'a, &'a str> {
1123+
pub fn attributes<'s>(&'s self) -> std::slice::Iter<'s, &'a str> {
11241124
self.attributes.iter()
11251125
}
11261126

@@ -1135,12 +1135,12 @@ impl<'a> Query<'a> {
11351135

11361136
/// Iterates over all constraints in the Query
11371137
/// Alias for `constraints()`,
1138-
pub fn iter(&'a self) -> std::slice::Iter<'a, Constraint<'a>> {
1138+
pub fn iter<'s>(&'s self) -> std::slice::Iter<'s, Constraint<'a>> {
11391139
self.constraints.iter()
11401140
}
11411141

11421142
/// Iterates over all assignments in the Query
1143-
pub fn assignments(&'a self) -> std::slice::Iter<'a, Assignment<'a>> {
1143+
pub fn assignments<'s>(&'s self) -> std::slice::Iter<'s, Assignment<'a>> {
11441144
self.assignments.iter()
11451145
}
11461146

0 commit comments

Comments
 (0)