Skip to content

Commit

Permalink
feat: add clippy lint allowance for check_repository and update test …
Browse files Browse the repository at this point in the history
…to capture summary

Signed-off-by: simonsan <14062932+simonsan@users.noreply.github.com>
  • Loading branch information
simonsan committed Nov 25, 2024
1 parent 58b36e9 commit 42ae627
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions crates/core/src/commands/check.rs
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ pub struct CheckOptions {
/// # Panics
///
// TODO: Add panics
#[allow(clippy::too_many_lines)]
pub(crate) fn check_repository<P: ProgressBars, S: Open>(
repo: &Repository<P, S>,
opts: CheckOptions,
Expand Down
4 changes: 2 additions & 2 deletions crates/core/tests/integration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(())
Expand Down

0 comments on commit 42ae627

Please sign in to comment.