Skip to content

Commit

Permalink
Remove .as_standalone() in EnvDeployCmd and EnvCleanCmd
Browse files Browse the repository at this point in the history
  • Loading branch information
azriel91 committed Sep 16, 2023
1 parent 6d0e6c9 commit f994772
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
3 changes: 1 addition & 2 deletions examples/envman/src/cmds/env_clean_cmd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@ macro_rules! run {
$flow_cmd::run($output, false, |cmd_ctx| {
async move {
let states_cleaned_outcome =
CleanCmd::exec_with(&mut cmd_ctx.as_standalone(), ApplyStoredStateSync::None)
.await?;
CleanCmd::exec_with(cmd_ctx, ApplyStoredStateSync::None).await?;
let CmdOutcome {
value: states_cleaned,
errors,
Expand Down
7 changes: 2 additions & 5 deletions examples/envman/src/cmds/env_deploy_cmd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,8 @@ macro_rules! run {
($output:ident, $flow_cmd:ident, $padding:expr) => {{
$flow_cmd::run($output, false, |cmd_ctx| {
async move {
let states_ensured_outcome = EnsureCmd::exec_with(
&mut cmd_ctx.as_standalone(),
ApplyStoredStateSync::Current,
)
.await?;
let states_ensured_outcome =
EnsureCmd::exec_with(cmd_ctx, ApplyStoredStateSync::Current).await?;
let CmdOutcome {
value: states_ensured,
errors,
Expand Down

0 comments on commit f994772

Please sign in to comment.