diff options
| author | Ruben Beltran del Rio <git@r.bdr.sh> | 2025-01-18 22:07:28 +0100 |
|---|---|---|
| committer | Ruben Beltran del Rio <git@r.bdr.sh> | 2025-01-18 22:07:28 +0100 |
| commit | 4c7d60b6554634957a4244e981b970b1e36d5fa6 (patch) | |
| tree | 26ea2d76862513527b30254ddc12675cdec587c5 /src/remote | |
| parent | 26c24bf226ca647793fdafbc5cda7c9c4646d147 (diff) | |
Add clippy recommendations
Diffstat (limited to 'src/remote')
| -rw-r--r-- | src/remote/mod.rs | 8 |
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); } } |