Skip to content

Commit 82c7467

Browse files
author
Alex
committed
fix(config): remove needless borrows in project.rs clippy warnings
- cargo clippy -D warnings caught &real.join() where real.join() works - Affects create_dir_all and canonicalize calls in test Refs #1721
1 parent 59cd233 commit 82c7467

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

crates/terraphim_config/src/project.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,10 +163,10 @@ mod tests {
163163
let temp = TempDir::new().unwrap();
164164
let real = temp.path().join("real");
165165
let linked = temp.path().join("linked");
166-
fs::create_dir_all(&real.join(".terraphim")).unwrap();
167-
fs::create_dir_all(&real.join("src")).unwrap();
166+
fs::create_dir_all(real.join(".terraphim")).unwrap();
167+
fs::create_dir_all(real.join("src")).unwrap();
168168
std::os::unix::fs::symlink(&real, &linked).unwrap();
169-
let canonical = std::fs::canonicalize(&real.join(".terraphim")).unwrap();
169+
let canonical = std::fs::canonicalize(real.join(".terraphim")).unwrap();
170170
let result = discover(Some(&linked.join("src"))).unwrap();
171171
assert_eq!(result, Some(canonical));
172172
}

0 commit comments

Comments
 (0)