diff --git a/crates/core/src/commands/check.rs b/crates/core/src/commands/check.rs index 7f6094299..a25b2ed14 100644 --- a/crates/core/src/commands/check.rs +++ b/crates/core/src/commands/check.rs @@ -236,6 +236,7 @@ pub struct CheckOptions { /// # Panics /// // TODO: Add panics +#[allow(clippy::too_many_lines)] pub(crate) fn check_repository( repo: &Repository, opts: CheckOptions, diff --git a/crates/core/tests/integration.rs b/crates/core/tests/integration.rs index 57d5a63e1..38075858b 100644 --- a/crates/core/tests/integration.rs +++ b/crates/core/tests/integration.rs @@ -559,13 +559,13 @@ fn test_prune( // run check let check_opts = CheckOptions::default().read_data(true); - repo.check(check_opts)?; + let _summary = repo.check(check_opts)?; if !instant_delete { // re-run if we only marked pack files. As keep-delete = 0, they should be removed here let plan = repo.prune_plan(&prune_opts)?; repo.prune(&prune_opts, plan)?; - repo.check(check_opts)?; + let _summary = repo.check(check_opts)?; } Ok(())