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 <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2025-02-20 10:07:08 +01:00
parent ce54bd1b11
commit 052d84ef37

View File

@ -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;