diff options
| author | Mason Reed <mason@vector35.com> | 2025-12-04 15:10:40 -0500 |
|---|---|---|
| committer | Mason Reed <mason@vector35.com> | 2025-12-05 12:26:29 -0500 |
| commit | 6546844ca4274cd11ec2c91da7c6d7b5e8a82d0b (patch) | |
| tree | 7341b815993247cba9df7ea95585ce9723510fa0 /rust/src/render_layer.rs | |
| parent | 6eb12c3c3f53079a822881bf6e197105b25a0fe3 (diff) | |
[Rust] Fix misc clippy lints and warnings
These are introduced after changing to Rust 1.91.1
Diffstat (limited to 'rust/src/render_layer.rs')
| -rw-r--r-- | rust/src/render_layer.rs | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/rust/src/render_layer.rs b/rust/src/render_layer.rs index 181294d4..cd53c9ac 100644 --- a/rust/src/render_layer.rs +++ b/rust/src/render_layer.rs @@ -13,10 +13,12 @@ use std::ptr::NonNull; /// The state in which the [`RenderLayer`] will be registered with. #[repr(u32)] +#[derive(Clone, Copy, Debug, PartialEq, Default)] pub enum RenderLayerDefaultState { /// Register the [`RenderLayer`] as disabled, the user must then enable it via the UI. /// /// This is the default registration value. + #[default] Disabled = 0, /// Register the [`RenderLayer`] as enabled, the user must then disable it via the UI. Enabled = 1, @@ -54,12 +56,6 @@ impl From<RenderLayerDefaultState> for BNRenderLayerDefaultEnableState { } } -impl Default for RenderLayerDefaultState { - fn default() -> Self { - Self::Disabled - } -} - /// Register a [`RenderLayer`] with the API. pub fn register_render_layer<T: RenderLayer>( name: &str, |
