From b912232188b47d677085624f9be9b762b50271cf Mon Sep 17 00:00:00 2001 From: Kevin Reid Date: Sun, 16 Mar 2025 16:30:44 -0700 Subject: [PATCH] [naga] Make `Level::next()` public. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It doesn’t make sense to have `Level` public but not `Level::next()`. --- naga/src/back/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/naga/src/back/mod.rs b/naga/src/back/mod.rs index 490c9b19b..dd9c7bd93 100644 --- a/naga/src/back/mod.rs +++ b/naga/src/back/mod.rs @@ -70,7 +70,7 @@ pub type PipelineConstants = hashbrown::HashMap; pub struct Level(pub usize); impl Level { - const fn next(&self) -> Self { + pub const fn next(&self) -> Self { Level(self.0 + 1) } }