From 8342f640b50e2f1be70e1041edb4028f046a4df8 Mon Sep 17 00:00:00 2001 From: Ruben Beltran del Rio Date: Tue, 7 Jan 2025 21:19:18 +0100 Subject: Lint git remote --- src/remote/git.rs | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'src/remote') diff --git a/src/remote/git.rs b/src/remote/git.rs index d15e002..556bed4 100644 --- a/src/remote/git.rs +++ b/src/remote/git.rs @@ -170,7 +170,11 @@ mod tests { git.sync_up(&remote_dir_as_string, &local_dir) .expect("Could not sync up to remote"); assert_file_in_repo_with_contents(&remote_dir_as_string, "file1.txt", "I exist"); - assert_file_in_repo_with_contents(&remote_dir_as_string, "file2.txt", "I also exist now, btw"); + assert_file_in_repo_with_contents( + &remote_dir_as_string, + "file2.txt", + "I also exist now, btw", + ); } #[test] @@ -233,7 +237,11 @@ mod tests { assert_file_contents(&local_dir.join("file1.txt"), "I exist, but remotely"); assert!(!&local_dir.join("file2.txt").exists()); - commit_file_to_remote(&remote_dir_as_string, "file2.txt", "I also exist, but remotely"); + commit_file_to_remote( + &remote_dir_as_string, + "file2.txt", + "I also exist, but remotely", + ); assert!(!&local_dir.join("file2.txt").exists()); git.sync_down(&remote_dir_as_string, &local_dir) .expect("Could not sync down from remote"); -- cgit