Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/trait_handlers/into/models/type_attribute.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use std::collections::HashMap;
use std::collections::BTreeMap;

use syn::{punctuated::Punctuated, Attribute, Meta, Token};

Expand All @@ -8,7 +8,7 @@ use crate::{
};

pub(crate) struct TypeAttribute {
pub(crate) types: HashMap<HashType, Bound>,
pub(crate) types: BTreeMap<HashType, Bound>,
}

#[derive(Debug)]
Expand All @@ -20,7 +20,7 @@ impl TypeAttributeBuilder {
pub(crate) fn build_from_into_meta(&self, meta: &[Meta]) -> syn::Result<TypeAttribute> {
debug_assert!(!meta.is_empty());

let mut types = HashMap::new();
let mut types = BTreeMap::new();

for meta in meta {
debug_assert!(meta.path().is_ident("Into"));
Expand Down Expand Up @@ -147,7 +147,7 @@ impl TypeAttributeBuilder {
}

Ok(output.unwrap_or(TypeAttribute {
types: HashMap::new()
types: BTreeMap::new()
}))
}
}