mirror of
https://github.com/storytold/photocraft.git
synced 2026-12-03 06:31:42 +01:00
Formatting only: #672 and #733 both changed export_dialog.rs and were each formatted on their own branches; merged together, cargo fmt --check fails. Co-authored-by: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
b6f5df3b3f
commit
e1cf321183
1 file changed
+5
-1
@@ -97,7 +97,11 @@ fn s_fmt(f: &Map<String, Value>) -> String {
|
||||
}
|
||||
|
||||
fn settings(f: &Map<String, Value>) -> ExportSettings {
|
||||
ExportSettings { jpeg_quality: (s_fmt(f) == "jpg").then(|| n(f, "quality", 85.0).clamp(1.0, 100.0) as u8), xmp_all: s(f, "metadata") == "all", ..Default::default() }
|
||||
ExportSettings {
|
||||
jpeg_quality: (s_fmt(f) == "jpg").then(|| n(f, "quality", 85.0).clamp(1.0, 100.0) as u8),
|
||||
xmp_all: s(f, "metadata") == "all",
|
||||
..Default::default()
|
||||
}
|
||||
}
|
||||
|
||||
/// Estimated size (bytes) from a ≤512 px proxy encode, scaled by pixel count.
|
||||
|
||||
Reference in new issue
Block a user