summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authormo8it <mo8it@proton.me>2024-04-06 01:46:09 +0200
committermo8it <mo8it@proton.me>2024-04-06 01:46:09 +0200
commit06e7216c833f46299c0314bbab47f8df9fc355a3 (patch)
tree54fc32a04b72dd6981b2684a1e3d3884bdfa6452 /tests
parent60155294e94acd661e4fe20cf8b72412167c772d (diff)
Elimintate an itermediate variable
Diffstat (limited to 'tests')
-rw-r--r--tests/integration_tests.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/integration_tests.rs b/tests/integration_tests.rs
index d853521..ccdd910 100644
--- a/tests/integration_tests.rs
+++ b/tests/integration_tests.rs
@@ -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]