fix30: очищены old-bash формулировки и уточнён class-id контракт

This commit is contained in:
2026-05-12 17:50:15 +05:00
parent b493c9df3b
commit bb37da72c0
5 changed files with 11 additions and 11 deletions
+1 -1
View File
@@ -272,7 +272,7 @@ mod tests {
}
#[test]
fn lexicographic_sorting_parity() {
fn lexicographic_sorting_preserves_class_id_contract() {
let raw = "wg0 key1 10.8.1.2/32\nwg0 key2 10.8.1.10/32";
let mut peers = parse_allowed_ips(raw, "10.8.1.0/24").expect("parse");
peers.sort_by_key(|p| p.ipv4.to_string());