Skip to content

Commit 4a07659

Browse files
committed
clippy
1 parent d7edd42 commit 4a07659

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

apps/desktop/src-tauri/src/export.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,7 @@ pub struct ExportPreviewResult {
189189
}
190190

191191
fn bpp_to_jpeg_quality(bpp: f32) -> u8 {
192-
let quality = ((bpp - 0.04) / (0.3 - 0.04) * (95.0 - 40.0) + 40.0).clamp(40.0, 95.0) as u8;
193-
quality
192+
((bpp - 0.04) / (0.3 - 0.04) * (95.0 - 40.0) + 40.0).clamp(40.0, 95.0) as u8
194193
}
195194

196195
#[tauri::command]

0 commit comments

Comments
 (0)