mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-27 12:48:00 +00:00
Swap BinaryHeap for Vec to avoid Ord constraint issue (#1523)
* Swap BianryHeap for KeyedVec to avoid Ord constraint issue * Vec, not KeyedVec
This commit is contained in:
+5
-1
@@ -348,7 +348,7 @@ fn default_derives(crate_path: &syn::Path) -> DerivesRegistry {
|
||||
fn default_substitutes(crate_path: &syn::Path) -> TypeSubstitutes {
|
||||
let mut type_substitutes = TypeSubstitutes::new();
|
||||
|
||||
let defaults: [(syn::Path, syn::Path); 11] = [
|
||||
let defaults: [(syn::Path, syn::Path); 12] = [
|
||||
(
|
||||
parse_quote!(bitvec::order::Lsb0),
|
||||
parse_quote!(#crate_path::utils::bits::Lsb0),
|
||||
@@ -389,6 +389,10 @@ fn default_substitutes(crate_path: &syn::Path) -> TypeSubstitutes {
|
||||
parse_quote!(BTreeMap),
|
||||
parse_quote!(#crate_path::utils::KeyedVec),
|
||||
),
|
||||
(
|
||||
parse_quote!(BinaryHeap),
|
||||
parse_quote!(#crate_path::alloc::vec::Vec),
|
||||
),
|
||||
(
|
||||
parse_quote!(BTreeSet),
|
||||
parse_quote!(#crate_path::alloc::vec::Vec),
|
||||
|
||||
Reference in New Issue
Block a user