diff --git a/tests/by-util/test_mktemp.rs b/tests/by-util/test_mktemp.rs index b5432c0a076..4a2048a4d41 100644 --- a/tests/by-util/test_mktemp.rs +++ b/tests/by-util/test_mktemp.rs @@ -655,6 +655,6 @@ fn test_tmpdir_env_var() { let result = ucmd.env(TMPDIR, ".").arg("XXX").succeeds(); let filename = result.no_stderr().stdout_str().trim_end(); let template = "XXX"; - assert_matches_template!(&template, filename); + assert_matches_template!(template, filename); assert!(at.file_exists(filename)); }