From 052d84ef3727d3748a7f7cca614659a094490fa8 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Thu, 20 Feb 2025 10:07:08 +0100 Subject: [PATCH] schema: drop useless doc comment (it's on the wrong function, and also it's wrong - std's str comparison forwards to the byte comparison anyway since this is fine for utf-8 if we're not doing anything natural-language-aware...) Signed-off-by: Wolfgang Bumiller --- proxmox-schema/src/schema.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/proxmox-schema/src/schema.rs b/proxmox-schema/src/schema.rs index f6e2f136..ddbbacd4 100644 --- a/proxmox-schema/src/schema.rs +++ b/proxmox-schema/src/schema.rs @@ -634,7 +634,6 @@ pub type SchemaPropertyEntry = (&'static str, bool, &'static Schema); /// This is a workaround unless RUST can const_fn `Hash::new()` pub type SchemaPropertyMap = &'static [SchemaPropertyEntry]; -/// Note: this only compares *bytes* and is not strictly speaking equivalent to str::cmp! const fn assert_properties_sorted(properties: SchemaPropertyMap) { use std::cmp::Ordering; @@ -881,7 +880,6 @@ pub struct OneOfSchema { pub list: &'static [(&'static str, &'static Schema)], } -/// Note: this only compares *bytes* and is not strictly speaking equivalent to str::cmp! const fn assert_one_of_list_is_sorted(list: &[(&str, &Schema)]) { use std::cmp::Ordering;