From 4ab16b7760beda28aaba60fd021991ba8c9c1899 Mon Sep 17 00:00:00 2001 From: bflatastic Date: Tue, 3 Nov 2026 15:57:51 +0700 Subject: [PATCH] Clipboard: compare the PNG scale directly (clippy neg_cmp_op_on_partial_ord) --- crates/engine/src/cmd/clipboard/flavours.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/engine/src/cmd/clipboard/flavours.rs b/crates/engine/src/cmd/clipboard/flavours.rs index 1a088cf3e..8e4c57d06 100644 --- a/crates/engine/src/cmd/clipboard/flavours.rs +++ b/crates/engine/src/cmd/clipboard/flavours.rs @@ -327,7 +327,7 @@ impl Clipboard { // The encoder renders at no fewer than MIN_COPY_PNG_SCALE pixels a point: art // too large to fit COPY_PNG_SIDE at that scale gets no PNG, rather than one // of up to a gigabyte of pixels. - if !(scale >= MIN_COPY_PNG_SCALE) { + if scale < MIN_COPY_PNG_SCALE { log::warn!("clipboard PNG: art {side} pt across is too large to copy as a picture"); continue; }