File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -200,8 +200,9 @@ impl CanisterBuilder for MotokoBuilder {
200200 if let Ok ( wasm_file_metadata) = metadata ( output_wasm_path) {
201201 let wasm_file_time = wasm_file_metadata. modified ( ) ?;
202202 let mut imports = pool. imports . borrow_mut ( ) ;
203- let start = if let Some ( node_index) = imports. nodes . get ( & MotokoImport :: Relative ( motoko_info. get_main_path ( ) . to_path_buf ( ) ) ) {
204- * node_index
203+ // TODO: ineffective to_string()
204+ let start = if let Some ( node_index) = imports. nodes . get ( & MotokoImport :: Canister ( canister_info. get_name ( ) . to_string ( ) ) ) {
205+ * node_index
205206 } else {
206207 let node = MotokoImport :: Relative ( motoko_info. get_main_path ( ) . to_path_buf ( ) ) ;
207208 let node_index = imports. graph . add_node ( node. clone ( ) ) ;
You can’t perform that action at this time.
0 commit comments