Skip to content

Commit d53fd60

Browse files
committed
Fix linting issues
1 parent 084cbe8 commit d53fd60

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

encryptify-lib/tests/encryptor_decryptor_tests.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,26 +62,26 @@ fn test_encrypt_decrypt_folder() {
6262
let content2 = b"Encryptify Library is awesome! :) ";
6363

6464
// Check if folder already exists and remove it if it does
65-
if fs::metadata(&folder_path).is_ok() {
66-
fs::remove_dir_all(&folder_path).expect("Failed to remove the test folder");
65+
if fs::metadata(folder_path).is_ok() {
66+
fs::remove_dir_all(folder_path).expect("Failed to remove the test folder");
6767
}
6868

6969
// Create the folder and setup the test files
70-
fs::create_dir(&folder_path).expect("Failed to create the test folder");
70+
fs::create_dir(folder_path).expect("Failed to create the test folder");
7171
setup_test_file(&file1_path, content1);
7272
setup_test_file(&file2_path, content2);
7373

7474
// Test folder encryption
75-
encrypt_folder(&folder_path, &key);
75+
encrypt_folder(folder_path, &key);
7676
assert!(fs::metadata(format!("{}.zip.encrypted", folder_path)).is_ok());
7777

7878
// Delete the original folder to ensure that decrypt_folder creates a new one
79-
fs::remove_dir_all(&folder_path).expect("Failed to remove the test folder");
79+
fs::remove_dir_all(folder_path).expect("Failed to remove the test folder");
8080

8181
decrypt_folder(&format!("{}.zip.encrypted", folder_path), &key);
8282

8383
let output_folder = folder_path;
84-
assert!(fs::metadata(&output_folder).is_ok());
84+
assert!(fs::metadata(output_folder).is_ok());
8585

8686
let file_content1 = fs::read(&file1_path).expect("Failed to read the file1");
8787
assert_eq!(file_content1, content1);

0 commit comments

Comments
 (0)