Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
vporton committed Apr 15, 2024
1 parent 089957f commit e6a7afc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/dfx/src/lib/builders/motoko.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,16 @@ impl MotokoBuilder {
pool: &CanisterPool,
canister_info: &CanisterInfo,
config: &BuildConfig,
motoko_info: &MotokoCanisterInfo,
id_map: &BTreeMap<String, String>, // TODO: I feel that this variable should not be here.
rev_id_map: &BTreeMap<String, String>, // TODO: I feel that this variable should not be here.
cache: &dyn Cache,
) -> DfxResult<BuildOutput> {
let output_wasm_path = motoko_info.get_output_wasm_path();

let motoko_info = canister_info.as_info::<MotokoCanisterInfo>()?;
let input_path = motoko_info.get_main_path();
let profile = config.profile;

let output_wasm_path = motoko_info.get_output_wasm_path();

let package_arguments =
package_arguments::load(cache, motoko_info.get_packtool())?;
let mut package_arguments_map = BTreeMap::<String, String>::new(); // TODO: Can we deal without cloning strings?
Expand Down Expand Up @@ -334,7 +335,6 @@ impl CanisterBuilder for MotokoBuilder {
pool,
canister_info,
config,
&motoko_info,
&id_map,
&rev_id_map,
cache.as_ref(),
Expand Down

0 comments on commit e6a7afc

Please sign in to comment.