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) <noreply@anthropic.com>
This commit is contained in:
@@ -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 },
|
||||
|
||||
Reference in New Issue
Block a user