Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
vporton committed Jan 29, 2025
1 parent 5e5f3f5 commit 9da9139
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dfx/src/commands/rules.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ pub fn exec(env1: &dyn Environment, opts: RulesOpts) -> DfxResult {

// We load dependencies before creating the file to minimize the time that the file is half-written.
// Load dependencies for Make rules:
let builder = CustomBuilder::new(env1)?; // TODO: hack // TODO: `&env` instead?
let builder = CustomBuilder::new(&env)?; // TODO: hack
let canisters = &config.get_config().canisters.as_ref();
let canister_names = if let Some(canisters) = canisters {
canisters.keys().map(|k| k.to_string()).collect::<Vec<String>>()
Expand Down

0 comments on commit 9da9139

Please sign in to comment.