mirror of
https://git.proxmox.com/git/proxmox
synced 2025-04-28 16:32:08 +00:00
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:
parent
ce54bd1b11
commit
052d84ef37
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user