We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48ba2f1 commit 0533ad7Copy full SHA for 0533ad7
gix/tests/gix/status.rs
@@ -313,14 +313,16 @@ mod index_worktree {
313
#[test]
314
fn submodule_in_symlinked_dir() -> crate::Result {
315
let repo = submodule_repo("symlinked-git-dir")?;
316
- let mut status = repo
+ let status = repo
317
.status(gix::progress::Discard)?
318
.index_worktree_options_mut(|opts| {
319
opts.sorting =
320
Some(gix::status::plumbing::index_as_worktree_with_renames::Sorting::ByPathCaseSensitive);
321
})
322
.into_index_worktree_iter(None)?;
323
- assert!(status.all(|r| r.is_ok()), "status should not have any errors");
+ for change in status {
324
+ change?;
325
+ }
326
Ok(())
327
}
328
0 commit comments