docs: add a comment to get_uuid

This commit is contained in:
alphafetus committed 2026-02-05 12:04:56 -05:00
1 parent 8417713aa1
commit fe5a107c7c
1 file changed
+1
+1
View File
@@ -13,6 +13,7 @@ fn get_uuid_from_map(map: &HashMap<String, ValueType>) -> Option<String> {
map.get("uuid")?.as_string().unwrap_or(None)
}
/// Does the same as [`get_uuid_from_map`], but starts from a [`ValueType`] enum.
fn get_uuid(vt: ValueType) -> Option<String> {
vt.as_map().ok().flatten().unwrap_or_default()
.get("uuid")?