Skip to content

Commit

Permalink
fix: address clippy unecessary deref lint in test
Browse files Browse the repository at this point in the history
  • Loading branch information
Stebalien committed Aug 6, 2024
1 parent 5b90d96 commit aae199a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/env.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ fn test_override_temp_dir() {
assert_eq!(tempfile::env::temp_dir(), std::env::temp_dir());

let new_tmp = Path::new("/tmp/override");
tempfile::env::override_temp_dir(&new_tmp).unwrap();
tempfile::env::override_temp_dir(new_tmp).unwrap();
assert_eq!(tempfile::env::temp_dir(), new_tmp);

let new_tmp2 = Path::new("/tmp/override2");
Expand Down

0 comments on commit aae199a

Please sign in to comment.