Skip to content
Myr

apply clippy advices on executor/commands lifetimes.

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by David Carlier · committed by David Peter · parent 74615f0 · Browse files · 2 files+3 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+3 added−3 removed

  • other:+3 added−3 removed

2 files+3 added−3 removed

modified:src/benchmark/executor.rs+2 added-2 removed
108 unmodified lines
109 RawExecutor { options }110 }111}112113impl<'a> Executor for RawExecutor<'a> {113impl Executor for RawExecutor<'_> {114 fn run_command_and_measure(115 &self,116 command: &Command<'_>,117 iteration: BenchmarkIteration,
42 unmodified lines
160 }161 }162}163164impl<'a> Executor for ShellExecutor<'a> {164impl Executor for ShellExecutor<'_> {165 fn run_command_and_measure(166 &self,167 command: &Command<'_>,168 iteration: BenchmarkIteration,
173 unmodified lines
modified:src/command.rs+1 added-1 removed
381 unmodified lines
382 );383 assert_eq!(cmd.get_name(), "name-quux-baz");384}385386impl<'a> fmt::Display for Command<'a> {386impl fmt::Display for Command<'_> {387 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {388 write!(f, "{}", self.get_command_line())389 }390}
172 unmodified lines