Skip to content

Commit c7b15b1

Browse files
author
Tom Dyas
committed
change return type to not use Result
[ci skip-build-wheels]
1 parent 147af44 commit c7b15b1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/rust/engine/src/context.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ impl Core {
137137
named_caches_dir: &Path,
138138
process_execution_metadata: &ProcessMetadata,
139139
exec_strategy_opts: &ExecutionStrategyOptions,
140-
) -> Result<Box<dyn CommandRunner>, String> {
140+
) -> Box<dyn CommandRunner> {
141141
let local_command_runner = process_execution::local::CommandRunner::new(
142142
store.clone(),
143143
executor.clone(),
@@ -158,10 +158,10 @@ impl Core {
158158
Box::new(local_command_runner)
159159
};
160160

161-
Ok(Box::new(BoundedCommandRunner::new(
161+
Box::new(BoundedCommandRunner::new(
162162
maybe_nailgunnable_local_command_runner,
163163
exec_strategy_opts.local_parallelism,
164-
)))
164+
))
165165
}
166166

167167
fn make_remote_execution_runner(
@@ -209,7 +209,7 @@ impl Core {
209209
named_caches_dir,
210210
process_execution_metadata,
211211
&exec_strategy_opts,
212-
)?;
212+
);
213213

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

0 commit comments

Comments
 (0)