From b58f38fbbcc5ace42b5e602b500e156b027a9639 Mon Sep 17 00:00:00 2001 From: damirka Date: Mon, 26 Apr 2021 12:37:53 +0300 Subject: [PATCH] clippy --- leo/tests/cmd.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/leo/tests/cmd.rs b/leo/tests/cmd.rs index 4aa26ec993..829d1aefbe 100644 --- a/leo/tests/cmd.rs +++ b/leo/tests/cmd.rs @@ -20,7 +20,7 @@ use test_dir::{DirBuilder, FileType, TestDir}; /// Create Command from given arguments and CWD. fn command(args: &str, cwd: Option) -> Command { - let args = args.split(" ").collect::>(); + let args = args.split(' ').collect::>(); let mut cmd = Command::cargo_bin("leo").unwrap(); if let Some(cwd) = cwd { @@ -74,7 +74,7 @@ fn new() { expect_success("new test", dir.clone()); expect_fail("new test", dir.clone()); // duplicate - expect_fail("new wrong_name123123", dir.clone()); + expect_fail("new wrong_name123123", dir); } #[test] @@ -123,6 +123,6 @@ fn test_missing_file() { let path = path.path("test"); expect_success("new missing-file-test", Some(path.clone())); - std::fs::remove_file(&path.clone().join("missing-file-test/src/main.leo")).unwrap(); + std::fs::remove_file(&path.join("missing-file-test/src/main.leo")).unwrap(); expect_fail("test", Some(path.join("missing-file"))); }