use f32::EPSILON from std for rust version < 1.43
This commit is contained in:
		
							parent
							
								
									df49bff4be
								
							
						
					
					
						commit
						019b7c10ff
					
				| @ -47,7 +47,7 @@ fn skip_serializing_if_for_struct() { | |||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     fn check_f32_function(&self, value: &f32) -> bool { |     fn check_f32_function(&self, value: &f32) -> bool { | ||||||
|       (value - 0.0).abs() < f32::EPSILON |       (value - 0.0).abs() < std::f32::EPSILON | ||||||
|     } |     } | ||||||
|   } |   } | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user