Skip to content

Commit

Permalink
change return type to not use Result
Browse files Browse the repository at this point in the history
[ci skip-build-wheels]
  • Loading branch information
Tom Dyas committed Oct 20, 2020
1 parent 147af44 commit c7b15b1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/rust/engine/src/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ impl Core {
named_caches_dir: &Path,
process_execution_metadata: &ProcessMetadata,
exec_strategy_opts: &ExecutionStrategyOptions,
) -> Result<Box<dyn CommandRunner>, String> {
) -> Box<dyn CommandRunner> {
let local_command_runner = process_execution::local::CommandRunner::new(
store.clone(),
executor.clone(),
Expand All @@ -158,10 +158,10 @@ impl Core {
Box::new(local_command_runner)
};

Ok(Box::new(BoundedCommandRunner::new(
Box::new(BoundedCommandRunner::new(
maybe_nailgunnable_local_command_runner,
exec_strategy_opts.local_parallelism,
)))
))
}

fn make_remote_execution_runner(
Expand Down Expand Up @@ -209,7 +209,7 @@ impl Core {
named_caches_dir,
process_execution_metadata,
&exec_strategy_opts,
)?;
);

let command_runner: Box<dyn CommandRunner> = if remoting_opts.execution_enable {
let remote_command_runner: Box<dyn process_execution::CommandRunner> = {
Expand Down

0 comments on commit c7b15b1

Please sign in to comment.