File tree 1 file changed +3
-3
lines changed
phd-tests/framework/src/guest_os
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -16,14 +16,14 @@ use super::{CommandSequence, CommandSequenceEntry};
16
16
/// This routine assumes that multi-line commands will be echoed with `> ` at
17
17
/// the start of each line in the command. This is technically shell-dependent
18
18
/// 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 > ,
21
21
buffer_kind : crate :: serial:: BufferKind ,
22
22
) -> CommandSequence {
23
23
let echo = cmd. trim_end ( ) . replace ( '\n' , "\n > " ) ;
24
24
match buffer_kind {
25
25
crate :: serial:: BufferKind :: Raw => CommandSequence ( vec ! [
26
- CommandSequenceEntry :: WriteStr ( cmd. into ( ) ) ,
26
+ CommandSequenceEntry :: WriteStr ( cmd) ,
27
27
CommandSequenceEntry :: WaitFor ( echo. into( ) ) ,
28
28
CommandSequenceEntry :: WriteStr ( "\n " . into( ) ) ,
29
29
] ) ,
You can’t perform that action at this time.
0 commit comments