aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/remote/mod.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/remote/mod.rs b/src/remote/mod.rs
index 74f4c48..8431c75 100644
--- a/src/remote/mod.rs
+++ b/src/remote/mod.rs
@@ -164,7 +164,7 @@ mod tests {
let remote_dir_as_string = remote_dir.display().to_string();
create_test_file(&test_dir.join("remoteconfig"), &remote_dir_as_string);
- let result = sync_up(&local_dir, &test_dir.join("remoteconfig"));
+ let result = sync_up(local_dir, &test_dir.join("remoteconfig"));
assert!(result.is_err());
cleanup_test_dir(&test_dir);
}
@@ -245,7 +245,7 @@ mod tests {
let remote_dir_as_string = remote_dir.display().to_string();
create_test_file(&test_dir.join("remoteconfig"), &remote_dir_as_string);
- let result = sync_down(&local_dir, &test_dir.join("remoteconfig"));
+ let result = sync_down(local_dir, &test_dir.join("remoteconfig"));
assert!(result.is_err());
cleanup_test_dir(&test_dir);
}
@@ -267,12 +267,12 @@ mod tests {
let bad_file_path = &test_dir.join("BADFILE OH NO");
let invalid_bytes = vec![0xFF, 0xFF];
- let mut bad_file = File::create(&bad_file_path).expect("Could not create bad file.");
+ let mut bad_file = File::create(bad_file_path).expect("Could not create bad file.");
bad_file
.write_all(&invalid_bytes)
.expect("Could not write bad bytes to bad file.");
- assert_eq!(read_remote(&bad_file_path), None);
+ assert_eq!(read_remote(bad_file_path), None);
cleanup_test_dir(&test_dir);
}
}