Skip to content

Commit 5e7c655

Browse files
committed
mkdir: remove redundant comments in test_mkdir_environment_expansion
Removed obvious comments that just state what the code is clearly doing: - '// Set an environment variable' before std::env::set_var - '// Clean up' before std::env::remove_var The code is self-explanatory and these comments add no value.
1 parent a7f0e97 commit 5e7c655

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

tests/by-util/test_mkdir.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -761,7 +761,6 @@ fn test_mkdir_environment_expansion() {
761761
let scene = TestScenario::new(util_name!());
762762
let at = &scene.fixtures;
763763

764-
// Set an environment variable
765764
unsafe {
766765
std::env::set_var("TEST_VAR", "expanded_value");
767766
}
@@ -785,7 +784,6 @@ fn test_mkdir_environment_expansion() {
785784
scene.ucmd().arg("-p").arg("~/test_dir").succeeds();
786785
assert!(at.dir_exists("~/test_dir"));
787786

788-
// Clean up
789787
unsafe {
790788
std::env::remove_var("TEST_VAR");
791789
}

0 commit comments

Comments
 (0)