Skip to content

Commit

Permalink
Use StepWithPlans type alias in more places
Browse files Browse the repository at this point in the history
  • Loading branch information
jherbel committed Nov 25, 2024
1 parent ff90440 commit 05487b9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/bin/scheduler/setup/steps/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ impl SetupStep for SetupStepSuccess {
}
}

pub fn skip(plans: Vec<Plan>) -> (Box<dyn SetupStep>, Vec<Plan>) {
pub fn skip(plans: Vec<Plan>) -> StepWithPlans {
(Box::new(SetupStepSuccess {}), plans)
}

Expand Down
4 changes: 2 additions & 2 deletions src/bin/scheduler/setup/steps/run.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use super::api::{run_steps, SetupStep};
use super::api::{run_steps, StepWithPlans};
use super::{directories, rcc};
use crate::internal_config::{sort_plans_by_grouping, GlobalConfig, Plan};
use robotmk::results::SetupFailure;
Expand Down Expand Up @@ -27,7 +27,7 @@ pub fn run(
Ok((plans, failures))
}

type Gatherer = fn(&GlobalConfig, Vec<Plan>) -> Vec<(Box<dyn SetupStep>, Vec<Plan>)>;
type Gatherer = fn(&GlobalConfig, Vec<Plan>) -> Vec<StepWithPlans>;
#[cfg(unix)]
type Steps = [Gatherer; 10];
#[cfg(windows)]
Expand Down

0 comments on commit 05487b9

Please sign in to comment.