Skip to content

Commit 48a4a35

Browse files
committed
Lint: Allow clippy::large_enum_variant.
These are mostly cases where we’re intentionally transferring complex data over channels or similar. The additional linting is probably due to <rust-lang/rust-clippy#13833>.
1 parent 9c2a993 commit 48a4a35

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

all-is-cubes-desktop/src/record.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ pub(crate) struct Recorder {
4343

4444
// TODO: should this be a trait? It's also an awful lot like HeadlessRenderer, except without the image output...
4545
#[derive(Debug)]
46+
#[allow(clippy::large_enum_variant)]
4647
enum RecorderInner {
4748
Shutdown,
4849
Raytrace(RtRecorder),

all-is-cubes-desktop/src/terminal/ui.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ pub struct TerminalWindow {
3838
}
3939

4040
#[derive(Debug)]
41+
#[allow(clippy::large_enum_variant)]
4142
pub(super) enum OutMsg {
4243
BeginFullscreen,
4344
WriteUiAndFrame(UiFrame),

all-is-cubes-gpu/src/in_wgpu/headless.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ struct RendererImpl {
114114
}
115115

116116
/// Messages from [`Renderer`] to [`RendererImpl`].
117+
#[allow(clippy::large_enum_variant)]
117118
pub(super) enum RenderMsg {
118119
Update(Option<Cursor>, oneshot::Sender<Result<(), RenderError>>),
119120
Render(String, oneshot::Sender<Result<Rendering, RenderError>>),

all-is-cubes-mesh/src/block_mesh/viz.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ use {
2828
/// compiles to nothing if the "rerun" feature is not enabled.
2929
#[doc(hidden)]
3030
#[expect(missing_debug_implementations)]
31+
#[allow(clippy::large_enum_variant)]
3132
#[non_exhaustive]
3233
pub enum Viz {
3334
Disabled,

0 commit comments

Comments
 (0)