From e750bce69b3c9962f7c9ebd1ef0070d84995c077 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Wed, 28 Aug 2024 14:32:39 +0200 Subject: [PATCH] schema: make Schema::any_object a const fn Signed-off-by: Wolfgang Bumiller --- proxmox-schema/src/schema.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxmox-schema/src/schema.rs b/proxmox-schema/src/schema.rs index 5cecdd0a..5cda29bd 100644 --- a/proxmox-schema/src/schema.rs +++ b/proxmox-schema/src/schema.rs @@ -1342,7 +1342,7 @@ impl Schema { } } - pub fn any_object(&self) -> Option<&dyn ObjectSchemaType> { + pub const fn any_object(&self) -> Option<&dyn ObjectSchemaType> { match self { Schema::Object(s) => Some(s), Schema::AllOf(s) => Some(s),