From 9d58c4526d23f6182a68633a1db8a8bf16d522ae Mon Sep 17 00:00:00 2001 From: Mikayla Maki Date: Wed, 7 Jun 2023 16:45:36 -0700 Subject: [PATCH] Fix warning --- crates/project/src/worktree.rs | 50 +++++++++++++++++----------------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/crates/project/src/worktree.rs b/crates/project/src/worktree.rs index f9ed2552d4bc6779c86483faf08b9f60ef95be1f..a43564d06516af00c8660eb58ab695648f276d8c 100644 --- a/crates/project/src/worktree.rs +++ b/crates/project/src/worktree.rs @@ -5409,31 +5409,31 @@ mod tests { panic!(); - check_propagated_statuses( - &snapshot, - &[ - (Path::new("a/b"), Some(GitFileStatus::Added)), - (Path::new("a/b/c1.txt"), Some(GitFileStatus::Added)), - (Path::new("a/b/c2.txt"), None), - (Path::new("a/d"), Some(GitFileStatus::Modified)), - (Path::new("a/d/e1.txt"), None), - (Path::new("a/d/e2.txt"), Some(GitFileStatus::Modified)), - (Path::new("f"), None), - (Path::new("f/no-status.txt"), None), - (Path::new("g"), Some(GitFileStatus::Conflict)), - ], - ); - - check_propagated_statuses( - &snapshot, - &[ - (Path::new("a/b/c1.txt"), Some(GitFileStatus::Added)), - (Path::new("a/b/c2.txt"), None), - (Path::new("a/d/e1.txt"), None), - (Path::new("a/d/e2.txt"), Some(GitFileStatus::Modified)), - (Path::new("f/no-status.txt"), None), - ], - ); + // check_propagated_statuses( + // &snapshot, + // &[ + // (Path::new("a/b"), Some(GitFileStatus::Added)), + // (Path::new("a/b/c1.txt"), Some(GitFileStatus::Added)), + // (Path::new("a/b/c2.txt"), None), + // (Path::new("a/d"), Some(GitFileStatus::Modified)), + // (Path::new("a/d/e1.txt"), None), + // (Path::new("a/d/e2.txt"), Some(GitFileStatus::Modified)), + // (Path::new("f"), None), + // (Path::new("f/no-status.txt"), None), + // (Path::new("g"), Some(GitFileStatus::Conflict)), + // ], + // ); + + // check_propagated_statuses( + // &snapshot, + // &[ + // (Path::new("a/b/c1.txt"), Some(GitFileStatus::Added)), + // (Path::new("a/b/c2.txt"), None), + // (Path::new("a/d/e1.txt"), None), + // (Path::new("a/d/e2.txt"), Some(GitFileStatus::Modified)), + // (Path::new("f/no-status.txt"), None), + // ], + // ); #[track_caller] fn check_propagated_statuses(