mirror of
https://github.com/sharkdp/hyperfine.git
synced 2026-11-03 09:23:00 +00:00
apply clippy advices on executor/commands lifetimes.
This commit is contained in:
1 parent
74615f01fb
commit
2899deb8fd
2 files changed
+3
-3
No files matched your search
@@ -110,7 +110,7 @@ impl<'a> RawExecutor<'a> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'a> Executor for RawExecutor<'a> {
|
impl Executor for RawExecutor<'_> {
|
||||||
fn run_command_and_measure(
|
fn run_command_and_measure(
|
||||||
&self,
|
&self,
|
||||||
command: &Command<'_>,
|
command: &Command<'_>,
|
||||||
@@ -161,7 +161,7 @@ impl<'a> ShellExecutor<'a> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'a> Executor for ShellExecutor<'a> {
|
impl Executor for ShellExecutor<'_> {
|
||||||
fn run_command_and_measure(
|
fn run_command_and_measure(
|
||||||
&self,
|
&self,
|
||||||
command: &Command<'_>,
|
command: &Command<'_>,
|
||||||
|
|||||||
+1
-1
@@ -383,7 +383,7 @@ fn test_get_parameterized_command_name() {
|
|||||||
assert_eq!(cmd.get_name(), "name-quux-baz");
|
assert_eq!(cmd.get_name(), "name-quux-baz");
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'a> fmt::Display for Command<'a> {
|
impl fmt::Display for Command<'_> {
|
||||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||||
write!(f, "{}", self.get_command_line())
|
write!(f, "{}", self.get_command_line())
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user