forked from Proxmox/proxmox
schema: make Schema::any_object a const fn
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
d166dcff0a
commit
e750bce69b
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user