mirror of
https://github.com/sharkdp/hyperfine.git
synced 2026-10-28 16:18:57 +00:00
Use get_program
This commit is contained in:
1 parent
21f76a338f
commit
6645fa10b9
1 file changed
+1
-4
+1
-4
@@ -300,10 +300,7 @@ fn test_shell_default_command() {
|
||||
assert_eq!(&s, DEFAULT_SHELL);
|
||||
|
||||
let cmd = shell.command();
|
||||
// Command::get_program is not yet available in stable channel.
|
||||
// https://doc.rust-lang.org/std/process/struct.Command.html#method.get_program
|
||||
let s = format!("{:?}", cmd);
|
||||
assert_eq!(s, format!("\"{}\"", DEFAULT_SHELL));
|
||||
assert_eq!(cmd.get_program(), DEFAULT_SHELL);
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
||||
Reference in new issue
Block a user