Update format

This commit is contained in:
Kevin Yue committed 2024-01-28 05:11:46 -05:00
1 parent b2bb35994f
commit 196e91289c
24 files changed
+54 -206

No files matched your search

+1 -3
View File
@@ -4,9 +4,7 @@ use super::{Gateway, PriorityRule};
pub(crate) fn parse_gateways(doc: &Document) -> Option<Vec<Gateway>> {
let node_gateways = doc.descendants().find(|n| n.has_tag_name("gateways"))?;
let list_gateway = node_gateways
.descendants()
.find(|n| n.has_tag_name("list"))?;
let list_gateway = node_gateways.descendants().find(|n| n.has_tag_name("list"))?;
let gateways = list_gateway
.children()