Skip to content

Commit 73f52ee

Browse files
committed
whoa we're half way there / whoa clippy on a prayer
1 parent 1c73c8c commit 73f52ee

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

phd-tests/framework/src/guest_os/shell_commands.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ use super::{CommandSequence, CommandSequenceEntry};
1616
/// This routine assumes that multi-line commands will be echoed with `> ` at
1717
/// the start of each line in the command. This is technically shell-dependent
1818
/// but is true for all the shell types in PHD's currently-supported guests.
19-
pub(super) fn shell_command_sequence<'a>(
20-
cmd: Cow<'a, str>,
19+
pub(super) fn shell_command_sequence(
20+
cmd: Cow<'_, str>,
2121
buffer_kind: crate::serial::BufferKind,
2222
) -> CommandSequence {
2323
let echo = cmd.trim_end().replace('\n', "\n> ");
2424
match buffer_kind {
2525
crate::serial::BufferKind::Raw => CommandSequence(vec![
26-
CommandSequenceEntry::WriteStr(cmd.into()),
26+
CommandSequenceEntry::WriteStr(cmd),
2727
CommandSequenceEntry::WaitFor(echo.into()),
2828
CommandSequenceEntry::WriteStr("\n".into()),
2929
]),

0 commit comments

Comments
 (0)