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