@@ -11,7 +11,7 @@ use std::collections::{BTreeMap, BTreeSet, HashMap, HashSet};
11
11
use std:: fmt;
12
12
use std:: fs;
13
13
use std:: path:: { Path , PathBuf } ;
14
- use walrus:: { ExportId , FunctionId , ImportId , MemoryId , Module , TableId } ;
14
+ use walrus:: { FunctionId , ImportId , MemoryId , Module , TableId } ;
15
15
16
16
mod binding;
17
17
@@ -1907,9 +1907,9 @@ impl<'a> Context<'a> {
1907
1907
self . generate_adapter ( * id, adapter, instrs) ?;
1908
1908
}
1909
1909
1910
- // let mut pairs = aux.export_map.iter().collect::<Vec<_>>();
1911
- // pairs.sort_by_key(|(k, _)| *k);
1912
- // check_duplicated_getter_and_setter_names(&pairs)?;
1910
+ let mut pairs = self . aux . export_map . iter ( ) . collect :: < Vec < _ > > ( ) ;
1911
+ pairs. sort_by_key ( |( k, _) | * k) ;
1912
+ check_duplicated_getter_and_setter_names ( & pairs) ?;
1913
1913
1914
1914
for e in self . aux . enums . iter ( ) {
1915
1915
self . generate_enum ( e) ?;
@@ -2975,7 +2975,7 @@ impl<'a> Context<'a> {
2975
2975
}
2976
2976
2977
2977
fn check_duplicated_getter_and_setter_names (
2978
- exports : & [ ( & ExportId , & AuxExport ) ] ,
2978
+ exports : & [ ( & AdapterId , & AuxExport ) ] ,
2979
2979
) -> Result < ( ) , Error > {
2980
2980
let verify_exports =
2981
2981
|first_class, first_field, second_class, second_field| -> Result < ( ) , Error > {
0 commit comments