bevy_render: fix clippy on wasm (#19872)
# Objective - bevy_render has unfulfilled expected clippy lints in wasm ## Solution - Don't expect them in wasm ## Testing `cargo clippy --target wasm32-unknown-unknown -p bevy_render --no-deps -- -D warnings`
This commit is contained in:
parent
a8bb208ed3
commit
01eff3ea93
@ -392,9 +392,12 @@ where
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// The buffer of GPU preprocessing work items for a single view.
|
/// The buffer of GPU preprocessing work items for a single view.
|
||||||
#[expect(
|
#[cfg_attr(
|
||||||
clippy::large_enum_variant,
|
not(target_arch = "wasm32"),
|
||||||
reason = "See https://github.com/bevyengine/bevy/issues/19220"
|
expect(
|
||||||
|
clippy::large_enum_variant,
|
||||||
|
reason = "See https://github.com/bevyengine/bevy/issues/19220"
|
||||||
|
)
|
||||||
)]
|
)]
|
||||||
pub enum PreprocessWorkItemBuffers {
|
pub enum PreprocessWorkItemBuffers {
|
||||||
/// The work items we use if we aren't using indirect drawing.
|
/// The work items we use if we aren't using indirect drawing.
|
||||||
|
@ -80,9 +80,12 @@ pub struct CachedPipeline {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// State of a cached pipeline inserted into a [`PipelineCache`].
|
/// State of a cached pipeline inserted into a [`PipelineCache`].
|
||||||
#[expect(
|
#[cfg_attr(
|
||||||
clippy::large_enum_variant,
|
not(target_arch = "wasm32"),
|
||||||
reason = "See https://github.com/bevyengine/bevy/issues/19220"
|
expect(
|
||||||
|
clippy::large_enum_variant,
|
||||||
|
reason = "See https://github.com/bevyengine/bevy/issues/19220"
|
||||||
|
)
|
||||||
)]
|
)]
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
pub enum CachedPipelineState {
|
pub enum CachedPipelineState {
|
||||||
@ -1114,9 +1117,12 @@ fn create_pipeline_task(
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Type of error returned by a [`PipelineCache`] when the creation of a GPU pipeline object failed.
|
/// Type of error returned by a [`PipelineCache`] when the creation of a GPU pipeline object failed.
|
||||||
#[expect(
|
#[cfg_attr(
|
||||||
clippy::large_enum_variant,
|
not(target_arch = "wasm32"),
|
||||||
reason = "See https://github.com/bevyengine/bevy/issues/19220"
|
expect(
|
||||||
|
clippy::large_enum_variant,
|
||||||
|
reason = "See https://github.com/bevyengine/bevy/issues/19220"
|
||||||
|
)
|
||||||
)]
|
)]
|
||||||
#[derive(Error, Debug)]
|
#[derive(Error, Debug)]
|
||||||
pub enum PipelineCacheError {
|
pub enum PipelineCacheError {
|
||||||
|
Loading…
Reference in New Issue
Block a user