From 8e43391df8bc77dbd26face8667cf2a23d1bbd73 Mon Sep 17 00:00:00 2001 From: DioCrafts Date: Mon, 15 Jun 2026 00:33:35 +0200 Subject: [PATCH] fix(clippy): allow large_enum_variant on DeltaCommitOutcome for Rust 1.93 Pre-existing in the delta-upload service: Rust 1.93's stricter large_enum_variant lint flags the FileDto-carrying Done variant (the sibling variant is tiny). The value is short-lived (one per commit), so silence the lint rather than box FileDto and complicate every call site. Keeps the CI clippy -D warnings gate green. Co-Authored-By: Claude Opus 4.8 (1M context) --- src/application/services/delta_upload_service.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/application/services/delta_upload_service.rs b/src/application/services/delta_upload_service.rs index 07e4312a..caf2238a 100644 --- a/src/application/services/delta_upload_service.rs +++ b/src/application/services/delta_upload_service.rs @@ -135,6 +135,11 @@ enum CommitMode { } /// Outcome of a commit attempt. +// `Done` carries a full `FileDto` (~297 B) while `StillMissing` is tiny; the +// size gap trips `clippy::large_enum_variant` under Rust 1.93's stricter lint. +// The value is short-lived (returned once per commit), so the gap isn't worth +// boxing — silence the lint rather than complicate the call sites. +#[allow(clippy::large_enum_variant)] pub enum DeltaCommitOutcome { /// The file row exists; `created` distinguishes 201 from 200. Done { file: FileDto, created: bool },