From 18370f39b80ad76bd9951fe49a984133eeb7fefc Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Thu, 21 Jan 2021 21:14:50 +0100 Subject: [PATCH] Remove some warnings --- tests/by-util/test_chmod.rs | 2 +- tests/by-util/test_realpath.rs | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/tests/by-util/test_chmod.rs b/tests/by-util/test_chmod.rs index e1fff99cf..e7bc72677 100644 --- a/tests/by-util/test_chmod.rs +++ b/tests/by-util/test_chmod.rs @@ -352,7 +352,7 @@ fn test_chmod_symlink_non_existing_file() { let (at, mut ucmd) = at_and_ucmd!(); at.symlink_file("/non-existing", "test-long.link"); - let result = ucmd + let _result = ucmd .arg("-R") .arg("755") .arg("-v") diff --git a/tests/by-util/test_realpath.rs b/tests/by-util/test_realpath.rs index fe06e5afb..b4c78cbaa 100644 --- a/tests/by-util/test_realpath.rs +++ b/tests/by-util/test_realpath.rs @@ -37,7 +37,6 @@ fn test_long_redirection_to_root() { fn test_file_and_links() { let scene = TestScenario::new(util_name!()); let at = &scene.fixtures; - let result = scene.ucmd().run(); at.touch("foo"); at.symlink_file("foo", "bar"); @@ -55,7 +54,6 @@ fn test_file_and_links() { fn test_file_and_links_zero() { let scene = TestScenario::new(util_name!()); let at = &scene.fixtures; - let result = scene.ucmd().run(); at.touch("foo"); at.symlink_file("foo", "bar"); @@ -75,7 +73,6 @@ fn test_file_and_links_zero() { fn test_file_and_links_strip() { let scene = TestScenario::new(util_name!()); let at = &scene.fixtures; - let result = scene.ucmd().run(); at.touch("foo"); at.symlink_file("foo", "bar");