mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-13 22:52:22 +00:00
@@ -13,3 +13,4 @@ quote.workspace = true
|
||||
proc-macro2.workspace = true
|
||||
heck.workspace = true
|
||||
darling.workspace = true
|
||||
itertools.workspace = true
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
use itertools::Itertools;
|
||||
use quote::quote;
|
||||
|
||||
use crate::{Field, attrs::FieldType};
|
||||
@@ -69,6 +70,7 @@ impl NamedStruct {
|
||||
self.attrs
|
||||
.ns_prefix
|
||||
.iter()
|
||||
.sorted_by_key(|(_ns, prefix)| prefix.value())
|
||||
.map(|(ns, prefix)| {
|
||||
let attr_name = if prefix.value().is_empty() {
|
||||
"xmlns".to_owned()
|
||||
|
||||
Reference in New Issue
Block a user