Browse Source

chore: Fix clippy warning

merge-requests/1716/head
Kévin Commaille 2 years ago
parent
commit
b43dd41cc2
No known key found for this signature in database
GPG Key ID: C971D9DBC9D678D
  1. 2
      src/contrib/qr_code_scanner/camera/camera_paintable/linux.rs

2
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 {

Loading…
Cancel
Save