Skip to content

Commit 42ae627

Browse files
committed
feat: add clippy lint allowance for check_repository and update test to capture summary
Signed-off-by: simonsan <14062932+simonsan@users.noreply.github.com>
1 parent 58b36e9 commit 42ae627

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

crates/core/src/commands/check.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,7 @@ pub struct CheckOptions {
236236
/// # Panics
237237
///
238238
// TODO: Add panics
239+
#[allow(clippy::too_many_lines)]
239240
pub(crate) fn check_repository<P: ProgressBars, S: Open>(
240241
repo: &Repository<P, S>,
241242
opts: CheckOptions,

crates/core/tests/integration.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -559,13 +559,13 @@ fn test_prune(
559559

560560
// run check
561561
let check_opts = CheckOptions::default().read_data(true);
562-
repo.check(check_opts)?;
562+
let _summary = repo.check(check_opts)?;
563563

564564
if !instant_delete {
565565
// re-run if we only marked pack files. As keep-delete = 0, they should be removed here
566566
let plan = repo.prune_plan(&prune_opts)?;
567567
repo.prune(&prune_opts, plan)?;
568-
repo.check(check_opts)?;
568+
let _summary = repo.check(check_opts)?;
569569
}
570570

571571
Ok(())

0 commit comments

Comments
 (0)