diff --git a/src/contrib/qr_code_scanner/camera/camera_paintable/linux.rs b/src/contrib/qr_code_scanner/camera/camera_paintable/linux.rs index ee0fd15a..75f74d23 100644 --- a/src/contrib/qr_code_scanner/camera/camera_paintable/linux.rs +++ b/src/contrib/qr_code_scanner/camera/camera_paintable/linux.rs @@ -88,7 +88,7 @@ mod imp { // Transformation to avoid stretching the camera. We translate and scale the // image. - let aspect = width / height.max(std::f64::EPSILON); // Do not divide by zero. + let aspect = width / height.max(f64::EPSILON); // Do not divide by zero. let image_aspect = image.intrinsic_aspect_ratio(); if image_aspect == 0.0 {