Skip to content

Commit 0592e2b

Browse files
committed
Relaxed lifetimes in FieldProxy
1 parent cd90bd0 commit 0592e2b

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/fields/proxy.rs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ impl<I: FieldProxyImpl> FieldProxy<I> {
8080
}
8181

8282
/// Compare the field to another value using `==`
83-
pub fn equals<'rhs, Rhs: 'rhs, Any>(
83+
pub fn equals<'rhs, Rhs, Any>(
8484
self,
8585
rhs: Rhs,
8686
) -> <FieldType!(I) as FieldEq<'rhs, Rhs, Any>>::EqCond<I>
@@ -91,7 +91,7 @@ impl<I: FieldProxyImpl> FieldProxy<I> {
9191
}
9292

9393
/// Compare the field to another value using `!=`
94-
pub fn not_equals<'rhs, Rhs: 'rhs, Any>(
94+
pub fn not_equals<'rhs, Rhs, Any>(
9595
self,
9696
rhs: Rhs,
9797
) -> <FieldType!(I) as FieldEq<'rhs, Rhs, Any>>::NeCond<I>
@@ -102,7 +102,7 @@ impl<I: FieldProxyImpl> FieldProxy<I> {
102102
}
103103

104104
/// Check if the field's value is in a given list of values
105-
pub fn r#in<'rhs, Rhs: 'rhs, Any>(
105+
pub fn r#in<'rhs, Rhs, Any>(
106106
self,
107107
rhs: Rhs,
108108
) -> <FieldType!(I) as FieldIn<'rhs, Rhs, Any>>::InCond<I>
@@ -113,7 +113,7 @@ impl<I: FieldProxyImpl> FieldProxy<I> {
113113
}
114114

115115
/// Check if the field's value is not in a given list of values
116-
pub fn not_in<'rhs, Rhs: 'rhs, Any>(
116+
pub fn not_in<'rhs, Rhs, Any>(
117117
self,
118118
rhs: Rhs,
119119
) -> <FieldType!(I) as FieldIn<'rhs, Rhs, Any>>::NiCond<I>
@@ -124,7 +124,7 @@ impl<I: FieldProxyImpl> FieldProxy<I> {
124124
}
125125

126126
/// Compare the field to another value using `<`
127-
pub fn less_than<'rhs, Rhs: 'rhs, Any>(
127+
pub fn less_than<'rhs, Rhs, Any>(
128128
self,
129129
rhs: Rhs,
130130
) -> <FieldType!(I) as FieldOrd<'rhs, Rhs, Any>>::LtCond<I>
@@ -135,7 +135,7 @@ impl<I: FieldProxyImpl> FieldProxy<I> {
135135
}
136136

137137
/// Compare the field to another value using `<=`
138-
pub fn less_equals<'rhs, Rhs: 'rhs, Any>(
138+
pub fn less_equals<'rhs, Rhs, Any>(
139139
self,
140140
rhs: Rhs,
141141
) -> <FieldType!(I) as FieldOrd<'rhs, Rhs, Any>>::LeCond<I>
@@ -146,7 +146,7 @@ impl<I: FieldProxyImpl> FieldProxy<I> {
146146
}
147147

148148
/// Compare the field to another value using `<`
149-
pub fn greater_than<'rhs, Rhs: 'rhs, Any>(
149+
pub fn greater_than<'rhs, Rhs, Any>(
150150
self,
151151
rhs: Rhs,
152152
) -> <FieldType!(I) as FieldOrd<'rhs, Rhs, Any>>::GtCond<I>
@@ -157,7 +157,7 @@ impl<I: FieldProxyImpl> FieldProxy<I> {
157157
}
158158

159159
/// Compare the field to another value using `>=`
160-
pub fn greater_equals<'rhs, Rhs: 'rhs, Any>(
160+
pub fn greater_equals<'rhs, Rhs, Any>(
161161
self,
162162
rhs: Rhs,
163163
) -> <FieldType!(I) as FieldOrd<'rhs, Rhs, Any>>::GeCond<I>
@@ -168,7 +168,7 @@ impl<I: FieldProxyImpl> FieldProxy<I> {
168168
}
169169

170170
/// Compare the field to another value using `LIKE`
171-
pub fn like<'rhs, Rhs: 'rhs, Any>(
171+
pub fn like<'rhs, Rhs, Any>(
172172
self,
173173
rhs: Rhs,
174174
) -> <FieldType!(I) as FieldLike<'rhs, Rhs, Any>>::LiCond<I>
@@ -179,7 +179,7 @@ impl<I: FieldProxyImpl> FieldProxy<I> {
179179
}
180180

181181
/// Compare the field to another value using `NOT LIKE`
182-
pub fn not_like<'rhs, Rhs: 'rhs, Any>(
182+
pub fn not_like<'rhs, Rhs, Any>(
183183
self,
184184
rhs: Rhs,
185185
) -> <FieldType!(I) as FieldLike<'rhs, Rhs, Any>>::NlCond<I>

0 commit comments

Comments
 (0)