Browse Source

One last Clippy fix

Benjamin Sago 4 năm trước cách đây
mục cha
commit
0319130315
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      src/output.rs

+ 2 - 2
src/output.rs

@@ -202,8 +202,8 @@ impl TextFormat {
                     loc.size,
                     loc.horizontal_precision,
                     loc.vertical_precision,
-                    loc.latitude.map(|e| e.to_string()).unwrap_or_else(|| "Out of range".into()),
-                    loc.longitude.map(|e| e.to_string()).unwrap_or_else(|| "Out of range".into()),
+                    loc.latitude .map_or_else(|| "Out of range".into(), |e| e.to_string()),
+                    loc.longitude.map_or_else(|| "Out of range".into(), |e| e.to_string()),
                     loc.altitude,
                 )
             }