diff --git a/Cargo.toml b/Cargo.toml index eca2eeb61f..ce4377e5c9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,7 +10,7 @@ keywords = ["game", "engine", "gamedev", "graphics", "bevy"] license = "MIT OR Apache-2.0" repository = "https://github.com/bevyengine/bevy" documentation = "https://docs.rs/bevy" -rust-version = "1.78.0" +rust-version = "1.79.0" [workspace] exclude = [ diff --git a/crates/bevy_render/src/view/visibility/render_layers.rs b/crates/bevy_render/src/view/visibility/render_layers.rs index ca6ce39772..4eee08216e 100644 --- a/crates/bevy_render/src/view/visibility/render_layers.rs +++ b/crates/bevy_render/src/view/visibility/render_layers.rs @@ -49,8 +49,10 @@ impl FromIterator for RenderLayers { impl Default for RenderLayers { /// By default, this structure includes layer `0`, which represents the first layer. + /// + /// This is distinct from [`RenderLayers::none`], which doesn't belong to any layers. fn default() -> Self { - Self::layer(0) + const { Self::layer(0) } } } @@ -68,6 +70,8 @@ impl RenderLayers { } /// Create a new `RenderLayers` that belongs to no layers. + /// + /// This is distinct from [`RenderLayers::default`], which belongs to the first layer. pub const fn none() -> Self { RenderLayers(SmallVec::from_const([0; INLINE_BLOCKS])) }