1
0
mirror of https://github.com/rust-lang/rustlings.git synced 2024-09-18 11:31:35 +02:00

Elimintate an itermediate variable

This commit is contained in:
mo8it 2024-04-06 01:46:09 +02:00
parent 60155294e9
commit 06e7216c83

View File

@ -7,8 +7,7 @@ use std::process::Command;
#[test]
fn runs_without_arguments() {
let mut cmd = Command::cargo_bin("rustlings").unwrap();
cmd.assert().success();
Command::cargo_bin("rustlings").unwrap().assert().success();
}
#[test]