@@ -223,12 +223,14 @@ where
223
223
224
224
/// Peform the equality comparison
225
225
#[ inline]
226
+ #[ must_use]
226
227
pub fn eq ( self , lhs : & A , rhs : & B ) -> bool {
227
228
A :: abs_diff_eq ( lhs, rhs, self . epsilon )
228
229
}
229
230
230
231
/// Peform the inequality comparison
231
232
#[ inline]
233
+ #[ must_use]
232
234
pub fn ne ( self , lhs : & A , rhs : & B ) -> bool {
233
235
A :: abs_diff_ne ( lhs, rhs, self . epsilon )
234
236
}
@@ -299,12 +301,14 @@ where
299
301
300
302
/// Peform the equality comparison
301
303
#[ inline]
304
+ #[ must_use]
302
305
pub fn eq ( self , lhs : & A , rhs : & B ) -> bool {
303
306
A :: relative_eq ( lhs, rhs, self . epsilon , self . max_relative )
304
307
}
305
308
306
309
/// Peform the inequality comparison
307
310
#[ inline]
311
+ #[ must_use]
308
312
pub fn ne ( self , lhs : & A , rhs : & B ) -> bool {
309
313
A :: relative_ne ( lhs, rhs, self . epsilon , self . max_relative )
310
314
}
@@ -372,12 +376,14 @@ where
372
376
373
377
/// Peform the equality comparison
374
378
#[ inline]
379
+ #[ must_use]
375
380
pub fn eq ( self , lhs : & A , rhs : & B ) -> bool {
376
381
A :: ulps_eq ( lhs, rhs, self . epsilon , self . max_ulps )
377
382
}
378
383
379
384
/// Peform the inequality comparison
380
385
#[ inline]
386
+ #[ must_use]
381
387
pub fn ne ( self , lhs : & A , rhs : & B ) -> bool {
382
388
A :: ulps_ne ( lhs, rhs, self . epsilon , self . max_ulps )
383
389
}
0 commit comments